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

Address Metacity window closing behavior and reverse 4880535 and 4909445

XMLWordPrintable

    • b30
    • generic
    • generic

      4880535 and 4909445 changed the specs of JFrame.setDefaultCloseOperation() and JDialog.setDefaultCloseOperation() to allow for some flexibility as to how the window manager can deal with DO_NOTHING_ON_CLOSE. This was necessitated by a known bug in the Metacity platform where it would always obscure the window even if the app chose to do nothing.

      The documentation of these methods has specified for a long time that DO_NOTHING_ON_CLOSE does "nothing". It is therefore incorrect to change them at this point to allow for different behavior on different platforms.

      Instead, a work-around should be devised until Metacity has been fixed.

      - The CCC requests for 4880535 and 4909445 should be withdrawn and we should notify those who are currently tasked with modifying the failing regression tests (since they will continue to be valid tests).
      - The docs of the aforementioned methods should be restored.
      - The evaluation of those bugs should be updated to state that the fixes have been pulled.
      - Lastly, all failing tests brought forth in those bugs should be tested against whatever work-around we devise.

            sharonz Sharon Zakhour (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: