Menu

#4 java8: Comparison method violates its general contract!

v1.0_(example)
open
nobody
None
5
2017-01-03
2017-01-03
rdbrown0au
No

Running in Java8: (java version "1.8.0_111") Cyvis can die with the following exception

The attached patch, fixes this and the trailing commas in text output.

Exception in thread "Thread-4" java.lang.IllegalArgumentException: Comparison method violates its general contract!
        at java.util.ComparableTimSort.mergeHi(Unknown Source)
..
        at java.util.Collections.sort(Unknown Source)
        at cyvis.metric.ProjectMetric.<init>(ProjectMetric.java:39)
        at cyvis.core.TUI.collectMetrics(TUI.java:99)
        at cyvis.core.TUI.run(TUI.java:69)
1 Attachments

Discussion


Log in to post a comment.