java.lang.IllegalArgumentException: Comparison method violates its general contract!

Stack Overflow | Ansharja | 3 months ago
  1. 0

    Cannot find exception's cause

    Stack Overflow | 3 months ago | Ansharja
    java.lang.IllegalArgumentException: Comparison method violates its general contract!
  2. 0

    Getting an exception as I create several labels off an array in Java (Swing)

    Stack Overflow | 3 years ago | krieg
    java.lang.IllegalArgumentException: Comparison method violates its general contract!
  3. 0

    What is going on here? Illegal Argument Exception w/ Violates Contract Error

    Stack Overflow | 4 years ago | frogeyedpeas
    java.lang.IllegalArgumentException: Comparison method violates its general contract!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I get hit with "Comparison method violates its general contract!" exception when I create/add more than a certain number of objects

    Stack Overflow | 4 years ago | user697683
    java.lang.IllegalArgumentException: Comparison method violates its general contract!
  6. 0

    What could possibly be wrong with this Comparator?

    Stack Overflow | 3 years ago | jackthehipster
    java.lang.IllegalArgumentException: Comparison method violates its general contract!

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Comparison method violates its general contract!

      at java.util.TimSort.mergeLo()
    2. Java RT
      EventDispatchThread.run
      1. java.util.TimSort.mergeLo(Unknown Source)
      2. java.util.TimSort.mergeAt(Unknown Source)
      3. java.util.TimSort.mergeCollapse(Unknown Source)
      4. java.util.TimSort.sort(Unknown Source)
      5. java.util.Arrays.sort(Unknown Source)
      6. java.util.ArrayList.sort(Unknown Source)
      7. java.util.Collections.sort(Unknown Source)
      8. javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source)
      9. javax.swing.SortingFocusTraversalPolicy.getFocusTraversalCycle(Unknown Source)
      10. javax.swing.SortingFocusTraversalPolicy.getFirstComponent(Unknown Source)
      11. javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(Unknown Source)
      12. javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(Unknown Source)
      13. java.awt.FocusTraversalPolicy.getInitialComponent(Unknown Source)
      14. java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
      15. java.awt.Component.dispatchEventImpl(Unknown Source)
      16. java.awt.Container.dispatchEventImpl(Unknown Source)
      17. java.awt.Window.dispatchEventImpl(Unknown Source)
      18. java.awt.Component.dispatchEvent(Unknown Source)
      19. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      20. java.awt.EventQueue.access$500(Unknown Source)
      21. java.awt.EventQueue$3.run(Unknown Source)
      22. java.awt.EventQueue$3.run(Unknown Source)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      26. java.awt.EventQueue$4.run(Unknown Source)
      27. java.awt.EventQueue$4.run(Unknown Source)
      28. java.security.AccessController.doPrivileged(Native Method)
      29. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      30. java.awt.EventQueue.dispatchEvent(Unknown Source)
      31. java.awt.SequencedEvent.dispatch(Unknown Source)
      32. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      33. java.awt.EventQueue.access$500(Unknown Source)
      34. java.awt.EventQueue$3.run(Unknown Source)
      35. java.awt.EventQueue$3.run(Unknown Source)
      36. java.security.AccessController.doPrivileged(Native Method)
      37. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      38. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      39. java.awt.EventQueue$4.run(Unknown Source)
      40. java.awt.EventQueue$4.run(Unknown Source)
      41. java.security.AccessController.doPrivileged(Native Method)
      42. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      43. java.awt.EventQueue.dispatchEvent(Unknown Source)
      44. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      45. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      46. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      47. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      48. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      49. java.awt.EventDispatchThread.run(Unknown Source)
      49 frames