UnmodifiableList equality

Issue #8 resolved
Rob Eden created an issue

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()); 

will fail whereas

TLongList l1 = new TLongArrayList();
TLongList l2 = new TLongArrayList(); 

passes. Note that the java equivalent also passes.

List l1 = Collections.unmodifiableList(new ArrayList());
List l2 = Collections.unmodifiableList(new ArrayList());

Original SF issue

Comments (6)

  1. Rob Eden reporter

    Haven't been able to duplicate an issue with T*ArrayList, but have duplicated the issue with T*LinkedList.

  2. Log in to comment