Uploaded image for project: 'Commons JXPath'
  1. Commons JXPath
  2. JXPATH-52

not() function not working correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1 Final
    • None
    • None
    • Operating System: All
      Platform: All

    • 30096

    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!!!

      Attachments

        Activity

          People

            Unassigned Unassigned
            xdury@hotmail.com Xavier Dury
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: