db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata DescriptorRepository.java
Date Wed, 09 Apr 2003 20:28:48 GMT
brj         2003/04/09 13:28:48

  Modified:    src/java/org/apache/ojb/broker/metadata
                        DescriptorRepository.java
  Log:
  fixed recursion problem in getConcreteSubclasses
  
  Revision  Changes    Path
  1.35      +6 -8      db-ojb/src/java/org/apache/ojb/broker/metadata/DescriptorRepository.java
  
  Index: DescriptorRepository.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/DescriptorRepository.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- DescriptorRepository.java	13 Mar 2003 19:45:38 -0000	1.34
  +++ DescriptorRepository.java	9 Apr 2003 20:28:47 -0000	1.35
  @@ -273,15 +273,13 @@
               Class extentClass = (Class) it.next();
               //logger.debug("-- -- -- Extent class for ["+superClass.getName()+"] ->
["+extentClass+"]");
               ClassDescriptor extentClassCld = getDescriptorFor(extentClass);
  -            if (extentClassCld.isAbstract())
  -            {
  -                //recurse
  -                concreteSubclasses.addAll(getConcreteSubclassesOf(extentClass));
  -            }
  -            else
  +            if (!extentClassCld.isAbstract())
               {
                   concreteSubclasses.add(extentClass);
  -            }
  +            } 
  +            // recurse   
  +            concreteSubclasses.addAll(getConcreteSubclassesOf(extentClass));
  +            
           }
           return concreteSubclasses;
       }
  
  
  

Mime
View raw message