- changed status to resolved
Exceptions while typing names in a custom taxonomy
"It happens when I'm adding records, as I type the species name. Certain letters at he beginning of the species names seem to trigger it; recently L and P. If I dismiss the error message and keep typing, it adds the letters I type before the letter already typed, so I try to type 'pale' and get 'alep'.
This is all when I'm using my own taxonomy of moths and butterflies of the British Isles. I think it's properly formatted but I include it so you can check."
java.lang.IllegalArgumentException: Comparison method violates its general contract! at java.util.TimSort.mergeHi(TimSort.java:899) at java.util.TimSort.mergeAt(TimSort.java:516) at java.util.TimSort.mergeForceCollapse(TimSort.java:457) at java.util.TimSort.sort(TimSort.java:254) at java.util.Arrays.sort(Arrays.java:1438) at com.google.common.collect.Ordering.sortedCopy(Ordering.java:854) at .ui.util.Scorer$StableOrdering.sortedCopy(Scorer.java:104) at .ui.util.Scorer$StableOrdering.sortedCopy(Scorer.java:109) at .ui.components.IndexerPanel.updatePopup(IndexerPanel.java:420) at .ui.components.IndexerPanel.access$200(IndexerPanel.java:81) at .ui.components.IndexerPanel$2.insertUpdate(IndexerPanel.java:153)
Comments (3)
-
reporter -
reporter - changed status to open
I think the issue revolves around alternate names. The "stable ordering" codepath is ignored for those.
-
reporter - changed status to resolved
Resolve Issue
#368, for real (I hope): support proper snapshotting of ordering in all IndexerPanel cases→ <<cset 7aad200504ae>>
- Log in to comment
Buried the problem in d7ddd20a. I still do not see why this is happening; but presumably the code in Scorer.StableOrdering is less clever than I thought it is.