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

java.awt.Container.getMouseEventTargetImpl should be invoked while holding the TreeLock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      The java.awt.Container.getMouseEventTargetImpl method is being called w/o holding the TreeLock (say, when it gets invoked from within the LightweightDispatcher).

      However this method deals with the component hierarchy. The same reason caused us to use this lock in the hw/lw mixing code (see 4811096). And actually this lock is required to fix the 5062995 (shaped windows and components), because the contains() method should fall back to the mixing code in order to get the shape of the component and determine whether it contains the given pixel.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: