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

YouTrack | 9 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

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

    YouTrack | 9 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