Update of /cvsroot/doxquery/doxquery/src/com/doxological/doxquery
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11861/src/com/doxological/doxquery
Modified Files:
XQueryEnvironment.java
Log Message:
Fixed bug #1196090, an issue with the lexer and comments in certain
positions. Added a functional regression test suits for the parser, which
compares query AST output to the expected results.
The tests can be built using the ant target "compile_test", and run using
the target "test".
Index: XQueryEnvironment.java
===================================================================
RCS file: /cvsroot/doxquery/doxquery/src/com/doxological/doxquery/XQueryEnvironment.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** XQueryEnvironment.java 31 Mar 2005 01:23:18 -0000 1.1
--- XQueryEnvironment.java 6 May 2005 01:18:52 -0000 1.2
***************
*** 99,103 ****
private InputStream resolve(String location) {
// Try using the classloader to find the resource
! return ClassLoader.getSystemResourceAsStream(location);
}
public InputStream resolveSchema(String targetNamespace, String location) {
--- 99,107 ----
private InputStream resolve(String location) {
// Try using the classloader to find the resource
! InputStream result = this.getClass().getClassLoader().getResourceAsStream(location);
! if(result == null) {
! result = ClassLoader.getSystemResourceAsStream(location);
! }
! return result;
}
public InputStream resolveSchema(String targetNamespace, String location) {
|