java.lang.ClassCastException: test.testScriptEngine.Output cannot be cast to test.testScriptEngine.Output

Stack Overflow | Xiaokun | 7 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

    `ClassCastException` when case object with `ScriptEngine`

    Stack Overflow | 7 months ago | Xiaokun
    java.lang.ClassCastException: test.testScriptEngine.Output cannot be cast to test.testScriptEngine.Output

    Root Cause Analysis

    1. java.lang.ClassCastException

      test.testScriptEngine.Output cannot be cast to test.testScriptEngine.Output

      at test.testScriptEngine.App.runSript()
    2. test.testScriptEngine
      App.main
      1. test.testScriptEngine.App.runSript(App.java:31)
      2. test.testScriptEngine.App.main(App.java:15)
      2 frames