I stumple accross some unusual behavior. I pretty sure it is a bug,

but I need confirmation ðŸ™‚

The distance method of the chord node class is defined as followed:

public int getDistance(ChordID id) {

BigInteger oid = id.getValue();

return this.id.subtract(oid).abs().intValue();

}

I assumed that abs() is returning the absolute value of the BigInteger

oid as explained in the corresponding javadoc. Therefore I thought

that the distance is always positive. But my debugging showed that

this is not the case.

Is this a bug?

P.S.: I helped myself by using Math.abs() on the return value.