commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Stelzer (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JXPATH-148) false and false returns true
Date Mon, 15 Nov 2010 20:18:13 GMT

     [ 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.


Mime
View raw message