United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4346296 : Overriding deprecated method with @deprecated method should not give warning

Details
Type:
Bug
Submit Date:
2000-06-17
Status:
Closed
Updated Date:
2003-04-12
Project Name:
JDK
Resolved Date:
2002-09-02
Component:
tools
OS:
linux,generic,windows_2000
Sub-Component:
javac
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.3.0,1.4.0,1.4.1
Fixed Versions:
1.4.2 (mantis)

Related Reports
Duplicate:
Duplicate:
Duplicate:

Sub Tasks

Description
In JDK 1.1, using the JavaDoc @deprecated tag for a method
overriding a deprecated method would block the compiler from
reporting a warning. Currently, I'm getting deprecation warnings
under JDK 1.3 which are not generated in JDK 1.1 (I would get a
warning in JDK 1.1 if I removed the @deprecation tag).
 
  This is important, since we need to have clean, no-warnings
  compiles. Generating the warning might make a developer think there
  is a problem. In fact, we sometimes have to override a deprecated
  method since there is 3rd-party software we use which uses the
  deprecated methods rather than their replacements.

  Here's a quick example:

  private final class Sample extends Canvas {
 
     /**
      * @deprecated
      */
     public Dimension preferredSize() {
         return getMinimumSize();
     }
 
  }


                                    

Comments
EVALUATION

OK.

neal.gafter@Eng 2000-12-14
                                     
2000-12-14
PUBLIC COMMENTS

..
                                     
2004-06-10
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis
mantis-b02

FIXED IN:
mantis
mantis-b02

INTEGRATED IN:
mantis
mantis-b02

VERIFIED IN:
mantis


                                     
2004-06-14



Hardware and Software, Engineered to Work Together