yesamer commented on code in PR #6871:
URL: https://github.com/apache/incubator-kie/pull/6871#discussion_r3728090064
##########
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/util/XQueryImplUtil.java:
##########
@@ -50,9 +58,7 @@ public static String executeReplaceFunction(String input,
String pattern, String
static <T> T evaluateXQueryExpression(String expression, Class<T>
expectedTypeResult) {
try {
- Processor processor = new Processor(false);
- XQueryCompiler compiler = processor.newXQueryCompiler();
- XQueryExecutable executable = compiler.compile(expression);
+ XQueryExecutable executable = COMPILER.compile(expression);
Review Comment:
XQueryCompiler docs says Concurrent use is permitted, but error messages may
not be attributed to the correct thread under concurrent error conditions. See
Saxon s9api {@link net.sf.saxon.s9api.XQueryCompiler} Javadoc. In this case
should be safe.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]