The following issue has been updated:
Updater: Robert Mayer (mailto:[EMAIL PROTECTED])
Date: Sat, 20 Nov 2004 5:21 AM
Comment:
This is the same patch file that I pasted into the description.
Changes:
Attachment changed to patch.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1164?page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1164
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1164
Summary: XDtMethod:ifHasMethod with more than one parameter
Type: Improvement
Status: Open
Priority: Major
Original Estimate: 1 hour
Time Spent: Unknown
Remaining: 1 hour
Project: XDoclet
Components:
Core
Versions:
1.2.1
1.2.2
1.3
Assignee: xdoclet-devel (Use for new issues)
Reporter: Robert Mayer
Created: Sat, 20 Nov 2004 5:19 AM
Updated: Sat, 20 Nov 2004 5:21 AM
Environment: W2k, ant 1.6.1, JDK 1.4.2_06
Description:
In a template the tag XDMethod:ifHasMethod only works for zero or one
parameter. Reason: the method
AbstractProgramElementTagsHandler.hasExecutableMember() builds the method
signature incorrectly, it does not put commas between parameters.
I was able to reproduce the bug in XDoclet 1.2.1, 1.2.2 and 1.3 SNAPSHOT
(20.Nov.2004)
Below please find a patch that fixes this (I created the patch using "ant
patch", I hope it is ok if I simply paste the file in here):
? patch.txt
Index: core/src/xdoclet/tagshandler/AbstractProgramElementTagsHandler.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/src/xdoclet/tagshandler/AbstractProgramElementTagsHandler.java,v
retrieving revision 1.16
diff -u -r1.16 AbstractProgramElementTagsHandler.java
--- core/src/xdoclet/tagshandler/AbstractProgramElementTagsHandler.java 1 Sep
2004 22:43:50 -0000 1.16
+++ core/src/xdoclet/tagshandler/AbstractProgramElementTagsHandler.java 20 Nov
2004 09:09:58 -0000
@@ -208,6 +208,9 @@
if (comma) {
executableMemberNameWithSignature.append(',');
}
+ else {
+ comma = true;
+ }
executableMemberNameWithSignature.append(getXJavaDoc().getXClass(parameters[i]).getQualifiedName());
}
}
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel