Alex Rodriguez created OAK-539:
----------------------------------

             Summary: Wrong compareTo in micro-kernel Id class
                 Key: OAK-539
                 URL: https://issues.apache.org/jira/browse/OAK-539
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: mk
    Affects Versions: 0.6
            Reporter: Alex Rodriguez


CompareTo method in Id class fails in some cases.

{code} 
// this works
final Id id1 = Id.fromString( "0000000000000007" );
final Id id2 = Id.fromString( "000000000000000c" );

assertTrue( id1 + " should be less than " + id2, id1.compareTo( id2 ) < 0 );

// but this doesn't
final Id id1 = Id.fromString( "0000000000000070" );
final Id id2 = Id.fromString( "00000000000000c0" );

assertTrue( id1 + " should be less than " + id2, id1.compareTo( id2 ) < 0 );
{code} 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to