The following issue has been updated:
Updater: Nathan Egge (mailto:[EMAIL PROTECTED])
Date: Thu, 28 Apr 2005 1:35 AM
Comment:
Simple patch that fixes assignment problem.
Changes:
Attachment changed to
patch-struts_form.xdt-fixed_Boolean_assignment.diff
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1368?page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1368
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1368
Summary: struts_form.xdt attempts to set Boolean = false
Type: Bug
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
Apache Module
Versions:
1.2.3
Assignee: xdoclet-devel (Use for new issues)
Reporter: Nathan Egge
Created: Thu, 28 Apr 2005 1:31 AM
Updated: Thu, 28 Apr 2005 1:35 AM
Environment: Gentoo Linux x86/2005.0/2.4
[blackdown-jdk-1.4.2] "Blackdown JDK 1.4.2"
Description:
The file
xdoclet/modules/apache/src/xdoclet/modules/apache/struts/resources/struts_form.xdt
contains the following logic in the reset method:
<XDtType:ifIsOfType value="return-type"
type="java.lang.Boolean,boolean" extent="concrete-type">
this.<XDtMethod:propertyName/> = false;
</XDtType:ifIsOfType>
When the return-type is java.lang.Boolean then, this template incorrectly tries
to set a Boolean = false. This should be replaced with the following logic:
<XDtType:ifIsOfType value="return-type" type="boolean"
extent="concrete-type">
this.<XDtMethod:propertyName/> = false;
</XDtType:ifIsOfType>
<XDtType:ifIsOfType value="return-type" type="java.lang.Boolean"
extent="concrete-type">
this.<XDtMethod:propertyName/> = Boolean.FALSE;
</XDtType:ifIsOfType>
I will create a patch and attach it.
---------------------------------------------------------------------
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.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel