User: ko5tik  
  Date: 02/05/03 11:27:09

  Modified:    src/xjavadoc AbstractClass.java
  Log:
  fixed interface implementation checking to look into superclasses
  
  Revision  Changes    Path
  1.26      +13 -0     xjavadoc/src/xjavadoc/AbstractClass.java
  
  Index: AbstractClass.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/AbstractClass.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -w -r1.25 -r1.26
  --- AbstractClass.java        2 May 2002 14:41:37 -0000       1.25
  +++ AbstractClass.java        3 May 2002 18:27:09 -0000       1.26
  @@ -562,12 +562,25 @@
                boolean result = false;
                XClass[] interfaces = interfaces();
   
  +             debug( toString() + " checking for implementation of: " + 
interfaceName );
                for( int i = interfaces.length - 1; i >= 0; i-- )
                {
  +                     debug( "implement: " + interfaces[i].qualifiedName() );
                        if( interfaces[i].qualifiedName().equals( interfaceName ) )
                        {
                                result = true;
                                break;
  +                     }
  +             }
  +
  +             // if not found here, delegate to superclass is any
  +             if( !result )
  +             {
  +                     debug( toString() + " checking superclass" );
  +                     if( superclass() != null )
  +                     {
  +                             debug( toString() + " superclass there" );
  +                             result = superclass().implementsInterface( 
interfaceName );
                        }
                }
                return result;
  
  
  

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to