[
https://issues.apache.org/jira/browse/FELIX-3986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Valentin Valchev resolved FELIX-3986.
-------------------------------------
Resolution: Fixed
fixed in rev.1459347
> ThreadDumper comparators are not correctly implemented
> ------------------------------------------------------
>
> Key: FELIX-3986
> URL: https://issues.apache.org/jira/browse/FELIX-3986
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Affects Versions: webconsole-4.0.0
> Reporter: Valentin Valchev
> Assignee: Valentin Valchev
> Fix For: webconsole-4.0.2
>
>
> The ThreadComparator and ThreadGroupComparator do not handle correctly null
> values. In embedded java SE 7 it might cause the following exception:
> java.lang.IllegalArgumentException: Comparison method violates its general
> contract!
> at java.util.TimSort.mergeHi(TimSort.java:868)
> at java.util.TimSort.mergeAt(TimSort.java:485)
> at java.util.TimSort.mergeCollapse(TimSort.java:408)
> at java.util.TimSort.sort(TimSort.java:214)
> at java.util.TimSort.sort(TimSort.java:173)
> at java.util.Arrays.sort(Arrays.java:659)
> at
> org.apache.felix.webconsole.internal.misc.ThreadDumper.printThreadGroup(ThreadDumper.java:161)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira