Bugs item #532832, was opened at 2002-03-21 01:26
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=532832&group_id=31602

Category: ejbdoclet
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: Andrew Stevens (stevensa)
Assigned to: Vincent Harcq (vharcq)
Summary: Primary Key class bug

Initial Comment:
So we don't forget it...

Leon Doud reported on xdoclet-devel:

The primary key's generated hashCode() method stores
its value in a transient int _hashCode.  It only
generates the value if the _hashCode ==
Integer.MIN_VALUE.  

If the object is serialized the _hashCode is not saved
because it is transient, and when deserialized
_hashCode is initialized to ZERO not MIN_VALUE.  This
causes the hashCode() method to never recalculate the
value of _hashCode() after being serialized.


----------------------------------------------------------------------

>Comment By: Vincent Harcq (vharcq)
Date: 2002-04-03 10:03

Message:
Logged In: YES 
user_id=125677

I changed hashCode as not transient
Did the same for toString value
Reset hashcode if setter is called

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=532832&group_id=31602

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to