Actions
Bug #6553
closedjava.lang.AssertionError when compile Xquery with tracing enabled
Start date:
2024-09-29
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java
Description
Hi Team, We are migrating from Saxon-ee 9 to 12.5. During regression test, some simple xquery is raising java.lang.AssertionError during compile with FeatureKeys.COMPILE_WITH_TRACING is set to true. This issue can be reproduced with the attach xquery compileXQueryWithTraceEnabled_test001.xquery and the java code below:
@Test
public final void testXQueryCompile_01() throws Exception {
// Use a default config different than the xml rule
// to check if that affect the compile result
final EnterpriseConfiguration config = new EnterpriseConfiguration();
SaxonActivator.activate(config);
try {
final InputStream source = new BufferedInputStream(Thread.currentThread().getContextClassLoader().getResourceAsStream("compileXQueryWithTraceEnabled_test001.xquery"));
config.setConfigurationProperty(FeatureKeys.COMPILE_WITH_TRACING, true);
final Processor processor = new Processor(config);
final XQueryCompiler xQueryCompiler = processor.newXQueryCompiler();
final XQueryExecutable exec = xQueryCompiler.compile(source);
if (exec != null) {
System.out.println(exec.toString());
}
} catch (Throwable e) {
e.printStackTrace();
}
}
Files
Please register to edit this issue
Actions