JDK-4460939 : RFE: Deprecated inheritance method resolution
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-05-20
  • Updated: 2001-05-21
  • Resolved: 2001-05-21
Related Reports
Duplicate :  
Description

Name: boT120536			Date: 05/20/2001


If I create a class that implements an interface, and that interface has a
method that is marked as deprecated, Then my class will issue a warning on
compilation. This is as it is expected.

However, I'd like to suppress this, because I promise that my class won't use
this message. Perhaps If I define my method like this (assuming foo() is a
deprecated method)

public void foo() throws DeprecatedException
{ 
   throw new DeprecatedException();
}

Then perhaps the compiler could be updated to NOT issue the warning.
(Review ID: 124247) 
======================================================================