UnmodifiableList equality
Issue #8
resolved
As soon as a list is made unmodifiable .equals no longer works as expected. For example:
TLongList l1 = TCollections.unmodifiableList(new TLongArrayList()); TLongList l2 = TCollections.unmodifiableList(new TLongArrayList()); assertTrue(l1.equals(l2));
will fail whereas
TLongList l1 = new TLongArrayList(); TLongList l2 = new TLongArrayList(); assertTrue(l1.equals(l2));
passes. Note that the java equivalent also passes.
List l1 = Collections.unmodifiableList(new ArrayList()); List l2 = Collections.unmodifiableList(new ArrayList()); assertTrue(l1.equals(l2));
Comments (6)
-
reporter -
reporter Haven't been able to duplicate an issue with T*ArrayList, but have duplicated the issue with T*LinkedList.
-
reporter - changed status to resolved
Fixed in c59d0ed
-
reporter - changed milestone to 3.0.5.b1
-
reporter - changed milestone to 3.0.5.m1
-
reporter - changed milestone to 3.1
- Log in to comment