java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

GitHub | ralphhm | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Custom Converters don't work together with multiple identical Objects (fail with ClassCastException)

    GitHub | 9 months ago | ralphhm
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to java.lang.Long

      at org.robolectric.shadows.ShadowParcel$ByteBuffer.readLong()
    2. Roboelectric HTTP
      ShadowParcel.nativeReadLong
      1. org.robolectric.shadows.ShadowParcel$ByteBuffer.readLong(ShadowParcel.java:252)
      2. org.robolectric.shadows.ShadowParcel.nativeReadLong(ShadowParcel.java:117)
      2 frames
    3. Android Platform
      Parcel.readLong
      1. android.os.Parcel.nativeReadLong(Parcel.java)
      2. android.os.Parcel.readLong(Parcel.java:1575)
      2 frames
    4. Unknown
      DateConverter.fromParcel
      1. DateConverter.fromParcel(DateConverter.java:18)
      1 frame