Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1 Final
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      the not() function is not working correctly with Boolean types, maybe it is not
      intended to do so (and Boolean manipulations should be handled with some
      external function library) but this could cause confusion so I prefered to
      report it.

      context.getVariables().declareVariable("TRUE", Boolean.TRUE);
      context.getVariables().declareVariable("FALSE", Boolean.FALSE);

      System.out.println(context.getValue("$TRUE")); // true
      System.out.println(context.getValue("$FALSE")); // false
      System.out.println(context.getValue("not($TRUE)")); // false
      System.out.println(context.getValue("not($FALSE)")); // false!!!

        Activity

        Xavier Dury created issue -
        Hide
        Dmitri Plotnikov added a comment -

        Thanks for catching this.

        Show
        Dmitri Plotnikov added a comment - Thanks for catching this.
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 30096 12341573
        Henri Yandell made changes -
        Affects Version/s 1.1 Final [ 12311652 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Component/s JXPath [ 12311120 ]
        Key COM-1421 JXPATH-52
        Project Commons [ 12310458 ] Commons JXPath [ 12310480 ]
        Henri Yandell made changes -
        Affects Version/s 1.1 Final [ 12311793 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Xavier Dury
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development