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

[SwingNode]: correct the code sample with respect to thread safety

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • javafx

    Description

      Code sample from the SwingNode javadoc doesn't declare the swingNode instance volatile which theoretically is thread unsafe. It's even better to move it to the start() method and declare final.

      Attachments

        Activity

          People

            ant Anton Tarasov (Inactive)
            ant Anton Tarasov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: