Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8049220

URL.factory data race

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 7u51, 8u5, 9
    • core-libs
    • b23

    Description

      There's a data race accessing java.net.URL.factory static field in getURLStreamHandler() method (used in constructors and readObject()) which can cause incorrect publication of URLStreamHandlerFactory instance. The URL.factory field should be made volatile.

      Attachments

        Activity

          People

            plevart Peter Levart
            plevart Peter Levart
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: