JDK-7053519 : JAXP issue 69 : Double-checked locking bug in javax.xml.parsers.FactoryFinder.find(String, String)
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-06-10
  • Updated: 2012-09-28
  • Resolved: 2012-02-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 7
1.4.0Fixed 7u4 b07Fixed
Related Reports
Relates :  
Description
javax.xml.parsers.FactoryFinder.find(String, String), revision 3037 contains a double checked locking bug.

The simple solution is to make static boolean field "firstTime" volatile and move the assignment "firstTime = false;" after the call to "cacheProps.load(ss.getFileInputStream(f));"

I did search for this bug, but can never seem to get good information out of JIRA's search feature.  Please excuse me if I have submitted a duplicate.

Comments
EVALUATION Fixed in jaxp 1.4.5. Will integrate into 7u2.
15-09-2011

EVALUATION This bug was filed under 6, targeted for JAXP 1.4, but for some reason showing up in OKO query for bad deferrals, hence assigning RC7-defer-request. If this is a bug in OKO please let us know, then we could file a bug against the tool accordingly. Also it would be good to share the "query criteria" for bad deferrals.
16-06-2011