Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-634


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-634
    Summary: EJB Data class Copy Constructor bug if no getter/setter methods
       Type: Bug

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             XDoclet Module
   Versions:
             1.2 Beta 3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Erik Johnson

    Created: Fri, 12 Sep 2003 5:06 PM
    Updated: Fri, 12 Sep 2003 5:06 PM
Environment: Win2K, JDK 1.4.1_01, XDoclet 1.2b3, ANT 1.5.4

Description:
I brought this up on the XDoclet-user mailing list and it was identified as a probable 
bug in the 1.2b3 version, however according to Konstantin Priblouda this may be fixed 
in the current CVS version (which I'm not using), in which case this bug can be used 
for tracking.

It seems that if an EJB does not have a getter/setter method for one or more of it's 
fields, the copy constructor in its data class generates a bug where it assigns the 
value of the field to itself (as opposed to the matching field of the other object it 
is copying.

>From the XDoclet example project:
public AddressData( AddressData otherData )
{
      setId(otherData.getId());
      this.street = street;
      this.city = city;
      setCreationDate(otherData.getCreationDate());
}

Assignments of this.street=street and this.city=city has no effect.



---------------------------------------------------------------------
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to