[3.0.0] DefaultQueryEngine pulls JDKEvaluatorFactory because of the public static field DEFAULT #342
In the line:
queryEngine = new DefaultQueryEngine(new DefaultEvaluatorFactory( CollQueryTemplates.DEFAULT, new ECJEvaluatorFactory(getClass().getClassLoader())));
DefaultQueryEngine attempts to create a DefaultEvaluatorFactory using JDKEvaluatorFactory, because the DEFAULT field is static.
Since I don't have tools.jar on the classpath, this fails.
The field should be changed to a method that lazily initializes the default instance. Otherwise it defeats the whole point of having ECJEvaluatorFactory to avoid pulling tools.jar.
The text was updated successfully, but these errors were encountered: