Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1337 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1337 Summary: Entity Data Object does not Compile with J2SE 1.5 Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: EJB Module Versions: 1.2.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Christian Elberfeld Created: Tue, 12 Apr 2005 5:59 AM Updated: Tue, 12 Apr 2005 5:59 AM Environment: Windows XP, JDK 1.5.0_01, ANT 1.6.2, XDoclet 1.2.2 Description: The generated DataObject for Entity Beans does not compile with Java 1.5. The reason are changes in the java.lang.StringBuffer class, so the generated toString() method is broken because of an unthrows IOException. This Bug can be fixed by changing the xdt Template for DataObjects (dataobject.xdt). Changing the sigle quotes in the str.append() methods to double quotes resolves the problem. corrected dataobject.xdt: [...] public String toString() { StringBuffer str = new StringBuffer("{"); <XDtEjbPersistent:ifHasAtLeastOnePersistentField> str.append(<XDtEjbPersistent:persistentfieldNameValueList/>); </XDtEjbPersistent:ifHasAtLeastOnePersistentField> <XDtEjbBmp:ifUseSoftLocking> str.append(",version="); str.append(_version); </XDtEjbBmp:ifUseSoftLocking> str.append("}"); return(str.toString()); } [...] --------------------------------------------------------------------- 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 xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel