[jboss-jira] [JBoss JIRA] Created: (JGRP-1281) ProxyAddress and UUID don't compareTo()

Bela Ban (JIRA) jira-events at lists.jboss.org
Fri Jan 28 10:54:39 EST 2011


ProxyAddress and UUID don't compareTo()
---------------------------------------

                 Key: JGRP-1281
                 URL: https://issues.jboss.org/browse/JGRP-1281
             Project: JGroups
          Issue Type: Bug
    Affects Versions: 2.12
            Reporter: Bela Ban
            Assignee: Bela Ban
             Fix For: 2.12


When we present global views in RELAY, we mix local (UUID) and global (ProxyAddress) addresses. This works fine as both classes implement Address.
However, when we sort them, there's a ClassCastException, because UUID.compareTo(ProxyAddress) fails. ProxyAddress.compareTo(UUID) works.

ProxyAddressTest is the unit test for this.

SOLUTION: add code in UUID.compare() that compares to a ProxyAddress

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list