United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4689044 : Window.hide() and Window.show() should be deprecated

Details
Type:
Bug
Submit Date:
2002-05-21
Status:
Resolved
Updated Date:
2003-11-26
Project Name:
JDK
Resolved Date:
2003-11-26
Component:
docs
OS:
generic
Sub-Component:
guides
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (b30)

Related Reports
Relates:

Sub Tasks

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


                                     
2004-06-14
PUBLIC COMMENTS

.
                                     
2004-06-10
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
                                     
2004-05-13



Hardware and Software, Engineered to Work Together