Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1338

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1338
    Summary: Entity PK 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 6:04 AM
    Updated: Tue, 12 Apr 2005 6:04 AM
Environment: Windows XP, JDK 1.5.0_01, ANT 1.6.2, XDoclet 1.2.2

Description:
The generated PKObject 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 append().append() is not longer possible.

This Bug can be fixed by changing the xdt Template for PKObjects 
(entitypk.xdt). Changing the .append().append() to to str.append() lines 
resolves the problem.
To avoid unthrown IOException the single quotes in the append() methods should 
be changed to double quotes.

corrected entitypk.xdt:
[...]

   /** @return String representation of this pk in the form of 
[.field1.field2.field3]. */
   public String toString()
   {
      StringBuffer toStringValue = new StringBuffer("[.");
        <XDtEjbPersistent:forAllPersistentFields superclasses="true" 
only-pk="true">
        
      toStringValue.append(this.<XDtEjbCmp:fieldName/>);
      toStringValue.append(".");

</XDtEjbPersistent:forAllPersistentFields>toStringValue.append("]");
      return toStringValue.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

Reply via email to