[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2725) ByteType.equals(Object, Object) wrong comparison

Daniel Frey (JIRA) noreply at atlassian.com
Thu Jul 12 11:33:52 EDT 2007


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


 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