TreeMap.containsKey() has thrown a ClassCastException

We found this prefix in 2 webpages.
MapChildren (2)Typical messages (2)TraceDetailed Map
  1. java.lang.ClassCastException
    1.   at java.lang.Long.compareTo()
    2.   at java.util.TreeMap.find()
    3.   at java.util.TreeMap.findByObject()
    4.   at java.util.TreeMap.containsKey()
  1. HTC M8 (6.0.1): TreeSet<Long>.contains(Long) throws class cast exception: "cannot cast Double to Long"

    First:1 year ago
    Last:1 year ago
    Author:EpicPandaForce
  2. Werid ClassCastException in TreeMap.containsKey()

    First:3 years ago
    Last:3 years ago
    Author:Binoy Babu
MessageNumber of crashes
java.lang.Double cannot be cast to java.lang.Long1
java.lang.String cannot be cast to java.lang.Long1
  1. java.lang.ClassCastException
    1.   at java.lang.Long.compareTo()
    2.   at java.util.TreeMap.find()
    3.   at java.util.TreeMap.findByObject()
    4.   at java.util.TreeMap.containsKey()