Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[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.