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 9912] New: - Exception using asPath()
Date Mon, 17 Jun 2002 07:47:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9912>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9912

Exception using asPath() 

           Summary: Exception using asPath()
           Product: Commons
           Version: 1.0 Beta 1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: JXPath
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mm@teraspect.de


I probably noticed a bug, when I use dynamic beans and iteratePointers() and
then the asPath() method on each pointer.

Assuming the toplevel (dynamic) bean has 3 attributes att1, att1, att3 and att3
is a nested bean whit attribute called 'nested'. 

The following works:

context.getValue("/att3/nested");

Whereas this throws an exception:

Iterator it = context.iteratePointers("/att3");
Pointer ptr = it.next();
context.getValue(ptr.asPath()+"/nested");

I provided a testcase.

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


Mime
View raw message