JDK-4689044 : Window.hide() and Window.show() should be deprecated
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2002-05-21
  • Updated: 2017-05-16
  • Resolved: 2003-11-26
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 Availability Release.

To download the current JDK release, click here.
Other
5.0 b30Fixed
Related Reports
Relates :  
Description
(This is simply a spec consistency issue.)

Component.hide() and Component.show() are marked as deprecated, but Window.hide() and Window.show() are not.  This appears to merely be the result of an oversight when these methods were overridden.  Since they are not deprecated, it gives the impression that these methods do something different than what Window.setVisible(true/false) would do, which is not the case.

Although this is not a critical issue, I regularly receive inquiries about it from external spec reviewers, so it is causing some bit of confusion.  It would be helpful if these methods were simply marked as "deprecated" for the sake of consistency.

###@###.### 2002-05-21

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b30 tiger-beta
14-06-2004

PUBLIC COMMENTS .
10-06-2004

EVALUATION sfalch at BugParade says: same goes for java.awt.Dialog http://developer.java.sun.com/developer/bugParade/bugs/4689044.html ###@###.### 2003-10-07 This was reviewed by Eric. Approved by CCC. Fixed for tiger. ###@###.### 2003-11-18 I'm afraid that the cure is worse than the disease here. In changing Window.show() (as well as Dialog.show()) to deprecated, the method specification was also removed. This means that there is now no indication that show() and setVisible() have different semantics on Window (or Dialog) than on Component. This information has been lost. ###@###.### 2004-05-13
13-05-2004