[jboss-jira] [JBoss JIRA] Closed: (JBREM-670) Remove equals() and hashCode() from org.jboss.remoting.transport.rmi.RemotingRMIClientSocketFactory.

Ron Sigal (JIRA) jira-events at jboss.com
Thu Jan 18 00:34:54 EST 2007


     [ http://jira.jboss.com/jira/browse/JBREM-670?page=all ]

Ron Sigal closed JBREM-670.
---------------------------

    Resolution: Done

equals() and hashCode() have been removed in HEAD and remoting_2_x.

> Remove equals() and hashCode() from org.jboss.remoting.transport.rmi.RemotingRMIClientSocketFactory.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JBREM-670
>                 URL: http://jira.jboss.com/jira/browse/JBREM-670
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions:  2.2.0.Beta1 (Bluto)
>            Reporter: Ron Sigal
>         Assigned To: Ron Sigal
>             Fix For:  2.2.0.Beta1 (Bluto)
>
>
> The definition of hashCode is problematic because it depends on the presence or absence of a SocketFactory, which comes and goes during createSocket().  Currently, the RemotingRMIClientSocketFactory is used as a key in a HashMap, and the SocketFactory is present when the entry is made and absent when the table is later searched.  The result is that a new SocketFactory is created during each call to createSocket().

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list