You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2007/12/14 22:33:55 UTC
svn commit: r604305 -
/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java
Author: mbenson
Date: Fri Dec 14 13:33:55 2007
New Revision: 604305
URL: http://svn.apache.org/viewvc?rev=604305&view=rev
Log:
nodeset/context consistency
Modified:
commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java
Modified: commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java
URL: http://svn.apache.org/viewvc/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java?rev=604305&r1=604304&r2=604305&view=diff
==============================================================================
--- commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java (original)
+++ commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/ri/compiler/CoreFunction.java Fri Dec 14 13:33:55 2007
@@ -421,7 +421,7 @@
if (ec.hasNext()) {
value = ((NodePointer) ec.next()).getValue();
} else { // empty context -> empty results
- return new BasicNodeSet();
+ return new NodeSetContext(context, new BasicNodeSet());
}
}
JXPathContext jxpathContext = context.getJXPathContext();