svn commit: r831182 - /xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: natalia
Date: Fri Oct 30 02:01:12 2009
New Revision: 831182

URL: http://svn.apache.org/viewvc?rev=831182&view=rev
Log:
Fix for OutOfMemoryError in XPath queries

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java?rev=831182&r1=831181&r2=831182&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java Fri Oct 30 02:01:12 2009
@@ -1384,6 +1384,8 @@
 
                 if (xpc == null) {
                     xpc = new XPathResolverContext(parameters);
+                } else {
+                    xpc.reset();
                 }
 
                 PrefixResolver pfx;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.