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