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] New: - Property "name" of a bean-array can't be reached due to special handling with Maps
Date Tue, 02 May 2006 14:28:50 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

           Summary: Property "name" of a bean-array can't be reached due to
                    special handling with Maps
           Product: Commons
           Version: 1.2 Final
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: JXPath
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mirko.richter@compago.de


Pointing to the sample at
http://jakarta.apache.org/commons/jxpath/users-guide.html#Map%20Element%20Access:
<code>
public class Employee {
    private Map addressMap = new HashMap();
    {
        addressMap.put("home", new Address(...));
        addressMap.put("office", new Address(...));
    }

    public Map getAddresses(){
       return addressMap;
    }
    ...
 }
[...]
String homeZipCode = (String)context.
        getValue("addresses[@name='home']/zipCode");
</code>

i realised that if "addresses" was an array of beans which contain the property
"name", the getter isn't called properly if evaluating
"addresses[@name='home']/zipCode".

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