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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • client-libs
    • b25
    • generic
    • generic
    • Not verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: