[ 
https://issues.apache.org/jira/browse/JXPATH-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Johannes Stelzer updated JXPATH-148:
------------------------------------

    Description: 
Map<String, Object> map = new HashMap<String, Object>();
map.put("h", false);
JXPathContext c = JXPathContext.newContext(map);

System.out.println(c.getValue("h  and h "));

Prints: true !!! it should print false!


System.out.println(c.getValue("h = true() and h = true()")); although prints 
correctly: false

  was:
Map<String, Object> map = new HashMap<String, Object>();
map.put("h", false);
JXPathContext c = JXPathContext.newContext(map);

System.out.println(c.getValue("h  and h "));

Prints: true !!! it shoult print false!


System.out.println(c.getValue("h = true() and h = true()")); although prints 
-correctly-: false


> false and false returns true
> ----------------------------
>
>                 Key: JXPATH-148
>                 URL: https://issues.apache.org/jira/browse/JXPATH-148
>             Project: Commons JXPath
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment: WindowsXP
>            Reporter: Johannes Stelzer
>            Priority: Blocker
>
> Map<String, Object> map = new HashMap<String, Object>();
> map.put("h", false);
> JXPathContext c = JXPathContext.newContext(map);
> System.out.println(c.getValue("h  and h "));
> Prints: true !!! it should print false!
> System.out.println(c.getValue("h = true() and h = true()")); although prints 
> correctly: false

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to