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)
======================================================================
- duplicates
-
JDK-4346296 Overriding deprecated method with @deprecated method should not give warning
-
- Closed
-