These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Bug in OrderedHbmFiles ?
PostPosted: Thu Jul 19, 2007 8:24 am 
Newbie

Joined: Tue May 15, 2007 10:10 am
Posts: 8
Code:
while (true)
{
   foreach (ClassEntry ce in unorderedClasses)
   {
      if (ce.FullExtends == null || processedClassNames.Contains(ce.FullExtends))
      {
         // This class extends nothing, or is derived from one of the classes that were already processed.
         // Append it to the list since it's safe to process now.
         sortedList.Add(ce);
         processedClassNames.Add(ce.FullClassName);
         processedInThisIteration.Add(ce);
      }
   }

   unorderedClasses.RemoveAll(processedInThisIteration);

   if (processedInThisIteration.Count == 0)
   {
      if (!unorderedClasses.IsEmpty)
      {
         throw new MappingException(FormatExceptionMessage(unorderedClasses));
      }
      break;
   }

   processedInThisIteration.Clear();
}


If my assembly contains a class that has a FullExtends and that the FullExtends class is defined in an other assembly, then this class will never be processed and the exception will be thrown.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 19, 2007 8:45 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Yes, this is a bug that has already been reported and is scheduled to be fixed in 1.2.1.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.