Bug 22526 - Warning given when implementing deprecated methods
Summary: Warning given when implementing deprecated methods
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: Other other
: P3 normal (vote)
Target Milestone: 2.1 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-19 10:45 EDT by Jared Burns CLA
Modified: 2002-09-19 06:48 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.