You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by vg...@apache.org on 2007/05/17 03:42:47 UTC
svn commit: r538788 -
/xml/xindice/trunk/java/src/org/apache/xindice/core/query/XPathQueryResolver.java
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() {