[ 
https://issues.apache.org/jira/browse/NETBEANS-6171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Svatopluk Dedic reassigned NETBEANS-6171:
-----------------------------------------

    Assignee: Svatopluk Dedic

> 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
>            Assignee: Svatopluk Dedic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 12.6
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 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

Reply via email to