Skip to content
This repository has been archived by the owner on Mar 31, 2019. It is now read-only.

Outcome usage of Xpath is not thread safe #156

Closed
kovax opened this issue Oct 8, 2017 · 0 comments
Closed

Outcome usage of Xpath is not thread safe #156

kovax opened this issue Oct 8, 2017 · 0 comments
Labels
Milestone

Comments

@kovax
Copy link
Member

kovax commented Oct 8, 2017

Outcome class initialize Xpath processing as a static variable like this:

XPathFactory xPathFactory = XPathFactory.newInstance();
xpath = xPathFactory.newXPath();

This is done because the creation of those object is very costly, but they are not threadsafe nor reentrant (check javadoc of those classes)

@kovax kovax added the bug label Oct 8, 2017
@kovax kovax added this to the 3.4 milestone Oct 8, 2017
@kovax kovax closed this as completed in 2c72c8b Oct 8, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant