Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-179

new() operator is broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      As an example,

      x = new ("java.util.HashSet"); x.add(1); x
      

      The following script generates log output

      [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
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dmitri_blinov Dmitri Blinov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: