User: rinkrank
  Date: 02/07/11 08:03:27

  Modified:    src/xjavadoc AbstractClass.java
  Log:
  Fixed bug [ 570683 ] Check for 'superinterfaces'?
  
  Revision  Changes    Path
  1.34      +14 -3     xjavadoc/src/xjavadoc/AbstractClass.java
  
  Index: AbstractClass.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/AbstractClass.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -w -r1.33 -r1.34
  --- AbstractClass.java        10 Jul 2002 01:01:42 -0000      1.33
  +++ AbstractClass.java        11 Jul 2002 15:03:27 -0000      1.34
  @@ -491,7 +491,7 @@
                boolean result = false;
                XClass[] interfaces = getInterfaces();
   
  -             _log.debug( toString() + " checking for implementation of: " + 
interfaceName );
  +             _log.debug( getQualifiedName() + " checking for implementation of: " + 
interfaceName );
                for( int i = interfaces.length - 1; i >= 0; i-- )
                {
                        _log.debug( "implement: " + interfaces[i].getQualifiedName() );
  @@ -500,15 +500,26 @@
                                result = true;
                                break;
                        }
  +
  +                     XClass[] superInterfaces = interfaces[i].getInterfaces();
  +
  +                     for( int j = superInterfaces.length - 1; j >= 0; j-- )
  +                     {
  +                             _log.debug( "implement: " + 
superInterfaces[j].getQualifiedName() );
  +                             if( superInterfaces[j].getQualifiedName().equals( 
interfaceName ) )
  +                             {
  +                                     result = true;
  +                                     break;
  +                             }
  +                     }
                }
   
                // if not found here, delegate to superclass is any
                if( !result )
                {
  -                     _log.debug( toString() + " checking superclass" );
                        if( getSuperclass() != null )
                        {
  -                             _log.debug( toString() + " superclass there" );
  +                             _log.debug( getQualifiedName() + " checking 
superclass:" + getQualifiedName() );
                                result = getSuperclass().isImplementingInterface( 
interfaceName );
                        }
                }
  
  
  


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to