Bug 55048 - Deprecated warnings do not show up if the deprecated method is in the same class
Summary: Deprecated warnings do not show up if the deprecated method is in the same class
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 minor (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-16 18:56 EST by David Beleznay CLA
Modified: 2004-03-26 07:40 EST (History)
0 users

See Also:


Attachments
File with deprecated method (723 bytes, text/plain)
2004-03-16 18:59 EST, David Beleznay CLA
no flags Details
Class that is using the deprecated method from another class (431 bytes, text/plain)
2004-03-16 19:00 EST, David Beleznay CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Beleznay CLA 2004-03-16 18:56:26 EST
If I create a class with a deprecated method, and then attempt to use that 
method from within the class, no warning shows up indicating that the method is 
dprecated.  Warnings do show up for other classes using the deprecated method.
Comment 1 David Beleznay CLA 2004-03-16 18:59:12 EST
Created attachment 8622 [details]
File with deprecated method

no warnings show up in eclipse when using this file with deprecation warnings
turned on.
Comment 2 David Beleznay CLA 2004-03-16 19:00:28 EST
Created attachment 8623 [details]
Class that is using the deprecated method from another class

if deprecated warnings are on then a warning appears in this file about the
deprecated method.
Comment 3 David Beleznay CLA 2004-03-16 19:01:26 EST
I'm using 3.0M7
Comment 4 David Beleznay CLA 2004-03-16 19:02:21 EST
Might be a more specific case of bug 48623 
Comment 5 Frederic Fusier CLA 2004-03-24 16:49:22 EST
This is normal behavior. Deprecated method is not flagged as error in it's own 
class, only when calling from other classes.

Try with Sun compiler javac and you'll get same behavior...