Message:
The following issue has been closed.
Resolver: Matthias Germann
Date: Sun, 10 Apr 2005 8:23 AM
This was already fixed in XDoclet 1.2.2
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-822
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-822
Summary: ejb-refs for inherited reports wrong duplicate errors
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Original Estimate: 5 minutes
Time Spent: Unknown
Remaining: 5 minutes
Project: XDoclet
Components:
EJB Module
Fix Fors:
1.2
Versions:
1.2
Assignee: xdoclet-devel (Use for new issues)
Reporter: Mr. Cookie
Created: Mon, 1 Mar 2004 10:47 AM
Updated: Sun, 10 Apr 2005 8:23 AM
Environment: OS X
Description:
in xdoclet.modules.ejb.dd.EjbRefTagsHandler.forAllEjbRefs()
the code evaluates if the duplicate ejb-ref is different (fatal error) or same
(warning). The comparison allways evaluates to the first option even when
ejb-refs are identical. Fix: replace the string comparison with correct
equals() calls.
if (previousTag.getAttributeValue("ejb-name") !=
tag.getAttributeValue("ejb-name") || previousTag.getAttributeValue("jndi-name")
!= tag.getAttributeValue("jndi-name")) {
log.error("Duplicate @ejb.ejb-ref found with different
parameters!");
log.error("Previous tag: @ejb.ejb-ref ref-name=\"" +
previousTag.getAttributeValue("ref-name") + "\"
ejb-name=\"" +
previousTag.getAttributeValue("ejb-name") + "\"
view-type=\"" +
previousTag.getAttributeValue("view-type") + "\"");
log.error("Current tag: @ejb.ejb-ref ref-name=\"" +
tag.getAttributeValue("ref-name") + "\"
ejb-name=\"" +
tag.getAttributeValue("ejb-name") + "\"
view-type=\"" +
tag.getAttributeValue("view-type") + "\"");
throw new XDocletException("Duplicate @ejb.ejb-ref with
different parameters");
}
else {
log.warn("Duplicated @ejb.ejb-ref found, ref-name=\"" +
refName + "\"");
}
---------------------------------------------------------------------
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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel