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

Dmitri Blinov closed JEXL-179.
------------------------------
       Resolution: Not A Problem
    Fix Version/s: 3.0

I apologize for false alarm, the problem was identified to be in overloaded 
Uberspect.getMethod where MethodExecutor returned from base class apparently 
didn't contain any method for constructor invocation resulting in NPE

> new() operator is broken
> ------------------------
>
>                 Key: JEXL-179
>                 URL: https://issues.apache.org/jira/browse/JEXL-179
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Dmitri Blinov
>             Fix For: 3.0
>
>
> As an example, 
> {code}
> x = new ("java.util.HashSet"); x.add(1); x
> {code}
> The following script generates log output
> {code}
> [DEBUG] EvaluationContext.evaluateScript: expr: x = new 
> ("java.util.HashSet"); x.add(1); x
> [WARN ] org.apache.commons.jexl3.JexlEngine: 
> EvaluationContext.evaluateScript@493 java.util.HashSet
> [WARN ] org.apache.commons.jexl3.JexlEngine: 
> EvaluationContext.evaluateScript@493![30,38]: 'x = new('java.util.HashSet');
> x.add(1);
> x;
> ' null value variable x
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to