User: vharcq  
  Date: 02/02/25 22:04:29

  Modified:    core/src/xdoclet/tags MethodTagsHandler.java
  Log:
  ifHasMethod did not work properly with methods without parameters
  
  Revision  Changes    Path
  1.23      +13 -2     xdoclet/core/src/xdoclet/tags/MethodTagsHandler.java
  
  Index: MethodTagsHandler.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/tags/MethodTagsHandler.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -w -r1.22 -r1.23
  --- MethodTagsHandler.java    12 Feb 2002 20:29:51 -0000      1.22
  +++ MethodTagsHandler.java    26 Feb 2002 06:04:29 -0000      1.23
  @@ -18,7 +18,7 @@
   /**
    * @author    Ara Abrahamian ([EMAIL PROTECTED])
    * @created   Oct 15, 2001
  - * @version   $Revision: 1.22 $
  + * @version   $Revision: 1.23 $
    */
   public class MethodTagsHandler extends AbstractProgramElementTagsHandler
   {
  @@ -1004,9 +1004,20 @@
                                        // All parameters must be equal to have 
"method equality"
                                        Parameter[] params = methods[i].parameters();
   
  +                                     if( parameters == null && params == null || 
params.length == 0 )
  +                                     {
  +                                             // The class has the given method
  +                                             if( setCurrentMethod )
  +                                                     setCurrentMethod( methods[i] );
  +                                             return true;
  +                                     }
  +                                     if( parameters == null || params == null )
  +                                             continue methodLoop;
  +                                     if( parameters.length != params.length )
  +                                             continue methodLoop;
                                        for( int j = 0; j < params.length; j++ )
                                        {
  -                                             if( parameters == null || 
!params[j].typeName().equals( parameters[j] ) )
  +                                             if( !params[j].typeName().equals( 
parameters[j] ) )
                                                        continue methodLoop;
                                        }
                                        if( cat.isDebugEnabled() )
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to