User: vharcq
Date: 02/02/26 09:37:57
Modified: core/src/xdoclet/tags MethodTagsHandler.java
Log:
Previous commit did not take into account the javadoc of hasMethod.
If "parameters" is not specified we look for "any" methods that have the same name,
nevermind parameter(s)
Revision Changes Path
1.24 +9 -3 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.23
retrieving revision 1.24
diff -u -w -r1.23 -r1.24
--- MethodTagsHandler.java 26 Feb 2002 06:04:29 -0000 1.23
+++ MethodTagsHandler.java 26 Feb 2002 17:37:57 -0000 1.24
@@ -18,7 +18,7 @@
/**
* @author Ara Abrahamian ([EMAIL PROTECTED])
* @created Oct 15, 2001
- * @version $Revision: 1.23 $
+ * @version $Revision: 1.24 $
*/
public class MethodTagsHandler extends AbstractProgramElementTagsHandler
{
@@ -1004,18 +1004,24 @@
// All parameters must be equal to have
"method equality"
Parameter[] params = methods[i].parameters();
- if( parameters == null && params == null ||
params.length == 0 )
+ if( parameters == null )
{
// The class has the given method
if( setCurrentMethod )
setCurrentMethod( methods[i] );
return true;
}
- if( parameters == null || params == null )
+ if( parameters != null && params == null )
continue methodLoop;
if( parameters.length != params.length )
continue methodLoop;
for( int j = 0; j < params.length; j++ )
+ {
+ if( !params[j].typeName().equals(
parameters[j] ) )
+ continue methodLoop;
+ }
+ // we have to handle the inverse order as well
+ for( int j = 0; j < parameters.length; j++ )
{
if( !params[j].typeName().equals(
parameters[j] ) )
continue methodLoop;
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel