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

changed,changedParent fields incorrect for DISPLAYABILITY_CHANGED HierarchyEvent

XMLWordPrintable

    • sparc
    • solaris_2.6

      To reproduce this bug, run the regression test at
        test/java/awt/event/HierarchyEvent/SpecTest/SpecTest.html.

      The test produces a series of messages of the following form:
      warning (known bug): changed for DISPLAYABILITY_CHANGED event incorrect
      warning (known bug): changedParent for DISPLAYABILITY_CHANGED event incorrect
      warning (known bug): changed for DISPLAYABILITY_CHANGED event incorrect
      warning (known bug): changedParent for DISPLAYABILITY_CHANGED event incorrect
      ...

      This bug occurs because DISPLAYABILITY_CHANGED HierarchyEvents are generated
      inside Component.addNotify and Component.removeNotify, which are called from
      several different places in the AWT, and could also be called from client code. There is currently no way to figure out whether a particular call to
      addNotify or removeNotify is the first call in the recursion, or where the
      first call (and hence the correct 'parent' field) was.

            dav Andrei Dmitriev (Inactive)
            dmendenhsunw David Mendenhall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: