java.lang.ClassCastException: TreeSetTest$Obj cannot be cast to java.lang.Comparable

GitHub | benoitheinrich | 11 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    TreeSet.flatMap - cannot be cast to java.lang.Comparable

    GitHub | 11 months ago | benoitheinrich
    java.lang.ClassCastException: TreeSetTest$Obj cannot be cast to java.lang.Comparable

    Root Cause Analysis

    1. java.lang.ClassCastException

      TreeSetTest$Obj cannot be cast to java.lang.Comparable

      at javaslang.collection.Comparators.lambda$naturalComparator$7c28a3e$1()
    2. javaslang.collection
      TreeSet.flatMap
      1. javaslang.collection.Comparators.lambda$naturalComparator$7c28a3e$1(Comparators.java:30)
      2. javaslang.collection.RedBlackTreeModule$Node.insert(RedBlackTree.java:670)
      3. javaslang.collection.RedBlackTree.insert(RedBlackTree.java:103)
      4. javaslang.collection.RedBlackTree.ofAll(RedBlackTree.java:90)
      5. javaslang.collection.TreeSet.ofAll(TreeSet.java:180)
      6. javaslang.collection.TreeSet.flatMap(TreeSet.java:584)
      7. javaslang.collection.TreeSet.flatMap(TreeSet.java:589)
      7 frames
    3. Unknown
      TreeSetTest.testFlapMap
      1. TreeSetTest.testFlapMap(TreeSetTest.java:24)
      1 frame