[jboss-jira] [JBoss JIRA] Commented: (JBREM-546) InvokerLocator.equals is broken

Petr Matejka (JIRA) jira-events at jboss.com
Mon Jul 17 15:27:12 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBREM-546?page=comments#action_12339708 ] 
            
Petr Matejka commented on JBREM-546:
------------------------------------

Hashcodes are never guaranteed to be unique, even on short strings (see Object.hashcode javadoc). The two locator uris with equal hash code (case sensitive):
"http://1.2.3.4/aaa"
"http://1.2.3.4/abB"

> InvokerLocator.equals is broken
> -------------------------------
>
>                 Key: JBREM-546
>                 URL: http://jira.jboss.com/jira/browse/JBREM-546
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: general
>    Affects Versions: 1.4.4.GA
>            Reporter: Petr Matejka
>         Assigned To: Tom  Elrod
>             Fix For: 2.0.0.CR1 (Boon)
>
>
> InvokerLocator.equals compares hash-codes of uris instead of comparing uris . The probability of hash collision is quite low except for cases when you connect to many nodes (which is my case, i'm connecting to >1000 nodes).

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