Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      All

      Description

      Jexl doesn't allow for using method with varargs - method cannot be found and because of that expression returns null. Try following code:

      class TestClass {
      public String testVarArgs (Integer... args)

      { return "Test"; }

      }

      String jexlExp = "test.testVarArgs(1,2,3,4,5)";
      Expression e = ExpressionFactory.createExpression(jexlExp);
      JexlContext jc = JexlHelper.createContext();
      jc.getVars().put("test", new TestClass());
      Object o = e.evaluate(jc);

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Marek Lewczuk
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development