United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4554456 : WindowListener.windowClosing() documentation is incorrect

Details
Type:
Bug
Submit Date:
2001-12-06
Status:
Resolved
Updated Date:
2003-10-31
Project Name:
JDK
Resolved Date:
2003-10-31
Component:
docs
OS:
generic,windows_2000
Sub-Component:
guides
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (b28)

Related Reports

Sub Tasks

Description

Name: jl125535			Date: 12/06/2001


java version "1.4.0-beta2"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)

Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

In the javadoc for java.awt.event.WindowListener.windowClosing(),
the line, "If the program does not explicitly hide or dispose the
window while processing this event, the window close operation
will be cancelled," is incorrect.

java.awt.Frame requires a user-defined WindowListener to call 
hide() or dispose(), but javax.swing.JFrame, by virtue of the
setDefaultCloseOperation() method, does not.
(Review ID: 136824) 
======================================================================

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
generic

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-b28
tiger-beta


                                     
2004-06-14
PUBLIC COMMENTS

.
                                     
2004-06-10
EVALUATION

The javadoc should probably be expanded to indicate this.
###@###.### 2001-12-06

Yup.  I backed out the comment from WindowListener and added a comment to Frame.  Reviewed by Eric, approved by CCC.  Fixed for tiger.
###@###.### 2003-10-16
                                     
2001-12-06



Hardware and Software, Engineered to Work Together