java.lang.ClassCastException: CodeRanch20131211b$Cat cannot be cast to CodeRanch20131211b$Dog

Coderanch | J Steven Perry | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Getting ClassCastException in simple downcasting

    Coderanch | 3 years ago | J Steven Perry
    java.lang.ClassCastException: CodeRanch20131211b$Cat cannot be cast to CodeRanch20131211b$Dog

    Root Cause Analysis

    1. java.lang.ClassCastException

      CodeRanch20131211b$Cat cannot be cast to CodeRanch20131211b$Dog

      at CodeRanch20131211b.main()
    2. Unknown
      CodeRanch20131211b.main
      1. CodeRanch20131211b.main(CodeRanch20131211b.java:22)
      1 frame