Bug 88124

Summary: More deprecated warnings than expected
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jerome Lanneluc CLA 2005-03-15 17:20:23 EST
I20050315

X.java
/**
 * @deprecated
 */
public class X {
}

Y.java
/**
 * @deprecated
 */
public class Y {
  void foo() {
    X x; // unexpected deprecated warning here
  }
}

In I20050308, there was no warning for the usage of X.
Comment 1 Philipe Mulet CLA 2005-03-16 04:37:29 EST
Cannot reproduce in latest.
Added DeprecatedTest#test007-008 to cover both full source, and source&binary cases.
Comment 2 Jerome Lanneluc CLA 2005-03-16 04:43:27 EST
Sorry my test case was wrong. It should be:
/**
 * @deprecated
 */
public class Y {
	X foo() { // unexpected deprecation warning here
		return null;
	}
}
Comment 3 Philipe Mulet CLA 2005-03-16 04:54:38 EST
Reproduced. Problem was due to field/method signature resolution occurring right
before deprecation bit propagation (consequence of accomodating @Deprecated
annotation).

Added DeprecatedTest#test007-009.
Fixed
Comment 4 David Audel CLA 2005-03-31 10:14:09 EST
Verified in I20050330-0500