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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: