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

URL.factory data race

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u51, 8u5, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

              Dates

              Created:
              Updated:
              Resolved: