Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0.0] DefaultQueryEngine pulls JDKEvaluatorFactory because of the public static field DEFAULT #342

Closed
Maia-Everett opened this issue Feb 14, 2013 · 1 comment
Milestone

Comments

@Maia-Everett
Copy link

@Maia-Everett Maia-Everett commented Feb 14, 2013

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.

@timowest
Copy link
Member

@timowest timowest commented Feb 20, 2013

Released in 3.0.0.BETA2

@timowest timowest closed this Feb 20, 2013
@timowest timowest added this to the 3.0.0 milestone Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants