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

new() operator is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.0
    • 3.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: