Bug 55048

Summary: Deprecated warnings do not show up if the deprecated method is in the same class
Product: [Eclipse Project] JDT Reporter: David Beleznay <dave_b93>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M8   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
File with deprecated method
none
Class that is using the deprecated method from another class none

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...