svn commit: r538788 - /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: vgritsenko
Date: Wed May 16 18:42:46 2007
New Revision: 538788

URL: http://svn.apache.org/viewvc?view=rev&rev=538788
Log:
fix unit test - move initialization of function table into the constructor

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?view=diff&rev=538788&r1=538787&r2=538788
==============================================================================
--- 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 Wed May 16 18:42:46 2007
@@ -135,18 +135,23 @@
     }
 
 
-    private DefaultErrorHandler errorListener = new DefaultErrorHandler();
+    private DefaultErrorHandler errorListener;
     private FunctionTable functionTable;
     private boolean autoIndex;
 
 
-    public void setConfig(Configuration config) throws XindiceException {
-        super.setConfig(config);
-        this.autoIndex = config.getBooleanAttribute("autoindex", false);
+    public XPathQueryResolver() {
+        super();
 
+        errorListener = new DefaultErrorHandler();
         if (XCOMPILER3) {
             functionTable = new FunctionTable();
         }
+    }
+
+    public void setConfig(Configuration config) throws XindiceException {
+        super.setConfig(config);
+        this.autoIndex = config.getBooleanAttribute("autoindex", false);
     }
 
     public String getQueryStyle() {
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.