Michele Vivoda created JXPATH-162:
-------------------------------------
Summary: Concurrency problem for
JXPathContextFactory.factoryImplName static field
Key: JXPATH-162
URL: https://issues.apache.org/jira/browse/JXPATH-162
Project: Commons JXPath
Issue Type: Bug
Affects Versions: 1.3
Reporter: Michele Vivoda
Priority: Minor
Fix For: 1.4
The static field [factoryImplName] is loaded lazily when the first call to
JXPathContextFactory#getInstance() is made. This is a broken pattern when
#getInstance() is called by multiple threads. My suggestion is to find the name
in the static initializer:
private static final String factoryImplName =
findFactory(FACTORY_NAME_PROPERTY, DEFAULT_FACTORY_CLASS);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira