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

        Marek Lewczuk created issue -
        dion gillard made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] New Feature [ 2 ]
        Hide
        peter royal added a comment -

        I've updated the Uberspect code with the latest from Velocity, which brings varargs support

        Show
        peter royal added a comment - I've updated the Uberspect code with the latest from Velocity, which brings varargs support
        dion gillard made changes -
        Fix Version/s 2.0 [ 12312031 ]
        Hide
        dion gillard added a comment -

        Code has been brought across from JEXL 1.x stream and a test added.

        Show
        dion gillard added a comment - Code has been brought across from JEXL 1.x stream and a test added.
        dion gillard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Henri Biestro added a comment -

        Bulk change issues closed by JEXL 2.0.

        Show
        Henri Biestro added a comment - Bulk change issues closed by JEXL 2.0.
        Henri Biestro made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development