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

Window.dispose() doesn't document JVM-exiting behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.0
    • docs
    • b16
    • generic
    • generic
    • Verified



        Name: bsC130419 Date: 08/23/2001


        1.4.0beta documentation

        The method description of java.awt.Window.dispose() doesn't mention that
        calling dispose() can cause the JVM to exit, and doesn't specify the
        conditions under which that happens.

        - It should describe (or refer the reader to some other description of)
          how the AWT keeps track of windows and exists when the last window is
          disposed.

        (Consider my documentation-reading scenario: The behavior has changed
        from AWT behavior in the past. I notice it when I call dispose(), so
        I look at that method's documentation. It mentions nothing, so I travsere
        up, looking in Window's class description. It mentions nothing, so I
        traverse up to package java.awt, but its description mentions nothing.
        The information, or a pointer to it, should be accessible close to that
        traversal chain. Otherwise, how will readers find it in a reasonable
        amount of time?)


        - It and/or the documentation of Frame.getFrames() should specify whether
          disposed frames are still listed in getFrames' result.

        DSB
        (Review ID: 130574)
        ======================================================================

              sharonz Sharon Zakhour (Inactive)
              bstrathesunw Bill Strathearn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: