JDK-4346296 : Overriding deprecated method with @deprecated method should not give warning
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.3.0,1.4.0,1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux,windows_2000
  • CPU: generic,x86
  • Submitted: 2000-06-17
  • Updated: 2003-04-12
  • Resolved: 2002-09-02
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
1.4.2 mantisFixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
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
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

PUBLIC COMMENTS ..
2004-06-10

EVALUATION OK. neal.gafter@Eng 2000-12-14
2000-12-14