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

Mac: GlassView2D/3D.lockedFocus boolean field isn't thread-safe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0.2
    • Fix Version/s: 7-pool
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      Mac

      Description

      A fix for RT-13914 introduced a new boolean field in GlassView2D and GlassView3D objects: lockedFocus. It gets updated from the View.begin()/end() methods, and access to the field isn't synchronized currently. Since all known Glass clients invoke both begin() and end() on the same thread, this shouldn't cause any issues.

      However, if we want to keep Glass thread-safe, we need to synchronize access to this field.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gziemski Gerard Ziemski
              Reporter:
              anthony Anthony Petrov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: