Bug 22526

Summary: Warning given when implementing deprecated methods
Product: [Eclipse Project] JDT Reporter: Jared Burns <jared_burns>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M1   
Hardware: Other   
OS: other   
Whiteboard:

Description Jared Burns CLA 2002-08-19 10:45:23 EDT
Build 20020813

The compiler generates a warning when code implements a deprecated method. 
However, since there is no way to resolve this (we must implement every 
method in an interface), I don't think a warning should be generated for 
this case. The only time it's useful to warn the user about deprecation is 
when they call a deprecated method.

Steps to reproduce:
1. Create an interface with a deprecated method.
2. Create a class which implements that interface and implements the method 
as required.
3. A compiler warning is generated which states, "This method overrides 
deprecated method from <interface name>"
Comment 1 Jerome Lanneluc CLA 2002-08-20 07:03:54 EDT
Tagging the overiding method with @deprecated will remove the warning.
Comment 2 Philipe Mulet CLA 2002-09-04 12:12:38 EDT
Generalized this by adding an option for filtering all deprecation warnings 
inside deprecated code.
Comment 3 David Audel CLA 2002-09-19 06:48:25 EDT
Verified.