java.lang.ClassCastException

Cannot cast jdk.nashorn.api.scripting.ScriptObjectMirror to java.util.function.Function

Solutions on the web19010

  • via JDK Bug System by Fairoz Matte, 11 months ago
    Cannot cast jdk.nashorn.api.scripting.ScriptObjectMirror to java.util.function.Function
  • Cannot cast jdk.nashorn.api.scripting.ScriptObjectMirror to java.util.function.Function
  • jdk.nashorn.api.scripting.ScriptObjectMirror cannot be cast to java.sql.Date
  • Stack trace

    • java.lang.ClassCastException: Cannot cast jdk.nashorn.api.scripting.ScriptObjectMirror to java.util.function.Function at java.lang.invoke.MethodHandleImpl.newClassCastException(MethodHandleImpl.java:361) at java.lang.invoke.MethodHandleImpl.castReference(MethodHandleImpl.java:356)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 2 months ago