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

JEXL not evaluating java Long

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1

      Description

      Trying to evaluate a long in a Jexl expression and the engine tries to cast it to an Integer.

      Expression e = engine.createExpression("TIMESTAMP > 20100102000000");
      JexlContext ctx = new MapContext();
      ctx.set("TIMESTAMP", new Long("20100103000000"));
      e.evaluate(ctx);

      throws a NumberFormatException at Integer.parseInt().

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              dlmarion Dave Marion
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: