-
Notifications
You must be signed in to change notification settings - Fork 120
Description
Hello,
we get the above error when clicking on the branches folder in a tree with many branches. The class causing the error is org.tigris.subversion.subclipse.ui.repository.RepositorySorter.
This error appears in general, if the comparison operator does not guarantee that if a > b, then b < a must also be true.
As an example:
Abcde-100
ABCDE-200
The order given here is correct for case sensitive, but not for case insensitive.
In Issue #36 one path in the code was changed to use compareToIgnoreCase (line 89), other paths, like line 43 were not. Depending on the code path taken, it can happen (it does in our specific tree), that inconsistent comparison results appear.
The code needs to be changed to use a consistent case sensitive or insensitive comparison.