commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39465] - [jxpath] Property "name" of a bean-array can't be reached due to special handling with Maps
Date Fri, 05 May 2006 00:52:32 GMT
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=39465>.
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=39465


dmitri@plotnix.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From dmitri@plotnix.com  2006-05-05 00:52 -------
This question has been raised before. This is not really a bug, but a documented
feature of JXPath. See
http://jakarta.apache.org/commons/jxpath/users-guide.html#Map%20Element%20Access

The specific paragraph discussing the issue: 'The attribute "name" can be used
not only with Maps, but with JavaBeans as well. The value of this attribute
represents the name of a property.'

Thus, it is a good idea to treat bean properties as entities rather than
attributes:  "foo/@name" will not work as expected, but "foo/name" will.

This feature has been out there for years, and I would be hesitant to change its
behavior.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message