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 8870] New: - Variable evaluation problem ?
Date Tue, 07 May 2002 14:15:37 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=8870>.
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=8870

Variable evaluation problem ?

           Summary: Variable evaluation problem ?
           Product: Commons
           Version: 1.0 Beta 1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: JXPath
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jpochat@sopragroup.com


We get a strange result with variable and/or pointer using.

Work well :
	context.getVariables().declareVariable("v1", "Dmitri");
	Pointer pointer1 = context.getPointer("/employees
[firstName=$v1]/lastName");
	Pointer pointer2 = context.getPointer("/employees[firstName=$v1]");

Doesn't seem to work :
	context.getVariables().declareVariable("v1", "Dmitri");
	Pointer pointer1 = context.getPointer("/employees[firstName=$v1]");
	Pointer pointer2 = context.getPointer("/employees[firstName=$v1]");

Reference pointer1 is a "BeanPointer".
Reference pointer2 is a "NullPointer", so its "getValue" method return 
always "null".

We can obtain only one pointer corresponding to a given expression. This 
problem appears only with path containing variables.

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