[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-2725) ByteType.equals(Object, Object) wrong comparison
Christian Bauer (JIRA)
noreply at atlassian.com
Thu Jul 12 11:45:52 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Bauer resolved HHH-2725.
----------------------------------
Resolution: Cannot Reproduce
ok...
> ByteType.equals(Object, Object) wrong comparison
> ------------------------------------------------
>
> Key: HHH-2725
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2725
> Project: Hibernate3
> Issue Type: Bug
> Components: core
> Affects Versions: 3.2.4
> Reporter: Daniel Frey
> Original Estimate: 1 minute
> Remaining Estimate: 1 minute
>
> was trying to update an object that has been altered in byte array fields. So probably I found a serious bug in ByteType.equals(Object, Object):35
> ByteTypeContent xi = (ByteTypeContent) x;
> ByteTypeContent yi = (ByteTypeContent) x;
> return xi.equals(yi);
> Should probably read:
> ByteTypeContent xi = (ByteTypeContent) x;
> ByteTypeContent yi = (ByteTypeContent) y; // <----!
> return xi.equals(yi);
> What do you think?
> Cheers
> Daniel
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list