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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      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

            • Assignee:
              ant Anton Tarasov
              Reporter:
              ant Anton Tarasov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: