You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2021/11/02 09:39:00 UTC
[jira] [Created] (NETBEANS-6171) GraalSDK ScriptEngine throws
ClassCast instead of returning null
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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists