Dmitri Blinov created JEXL-179:
----------------------------------

             Summary: 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


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