JDK-4554456 : WindowListener.windowClosing() documentation is incorrect
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_2000
  • CPU: generic,x86
  • Submitted: 2001-12-06
  • Updated: 2017-05-16
  • Resolved: 2003-10-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
5.0 b28Fixed
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