[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2195) BasicLazyInitializer use overridesEquals() to know if hashCode() is overrided.

Adrien (JIRA) noreply at atlassian.com
Sun Oct 29 10:50:05 EST 2006


BasicLazyInitializer use overridesEquals() to know if hashCode() is overrided.
------------------------------------------------------------------------------

         Key: HHH-2195
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2195
     Project: Hibernate3
        Type: Bug

  Components: core  
    Versions: 3.2.0.ga    
    Reporter: Adrien
    Priority: Trivial
 Attachments: patch.txt


In BasicLazyInitializer, there is the following code.

else if ( !overridesEquals && "hashCode".equals(methodName) ) {
    return new Integer( System.identityHashCode(proxy) );

It should be :

else if ( !overridesHashCode && "hashCode".equals(methodName) ) {
   return new Integer( System.identityHashCode(proxy) );


-- 
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