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

Bela Ban (JIRA) jira-events at lists.jboss.org
Wed Mar 9 04:50:46 EST 2011


    [ https://issues.jboss.org/browse/JGRP-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586781#comment-12586781 ] 

Bela Ban commented on JGRP-1281:
--------------------------------

ProxyAddress was removed as it's not needed by RELAY any longer

> 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