jaxp
  1. jaxp
  2. JAXP-69

Double-checked locking bug in javax.xml.parsers.FactoryFinder.find(String, String)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: jaxp.next
    • Component/s: None
    • Labels:
      None

      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.

        Activity

          People

          • Assignee:
            Joe Wang
            Reporter:
            ryanhos
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: