DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30096>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30096

not() function not working correctly

           Summary: not() function not working correctly
           Product: Commons
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: JXPath
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to