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

YouTrack | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Delegation & covariant return type in override cause CCE at run-time

    YouTrack | 11 months ago
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at test.Broken.foo()
    2. test
      TestMeKt.main
      1. test.Broken.foo(TestMe.kt:11)
      2. test.TestMeKt.useDerived(TestMe.kt:14)
      3. test.TestMeKt.main(TestMe.kt:19)
      3 frames