Svatopluk Dedic created NETBEANS-6171: -----------------------------------------
Summary: GraalSDK ScriptEngine throws ClassCast instead of returning null Key: NETBEANS-6171 URL: https://issues.apache.org/jira/browse/NETBEANS-6171 Project: NetBeans Issue Type: Bug Components: ide - Code Affects Versions: 12.5 Reporter: Svatopluk Dedic Fix For: 12.6 My code calls ScriptEngine eng = ... ((Invocable)eng).getInterface(aValue, SomeInterface.class); In case of an incompatible 'aValue', the ScriptEngine throws a ClassCastException, although it should return just null (" null if the requested interface is unavailable"). This behaviour changed after NB 11.3, and is present in NB 12.5 - should be fixed. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists