Bug 88124 - More deprecated warnings than expected
Summary: More deprecated warnings than expected
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 17:20 EST by Jerome Lanneluc CLA
Modified: 2005-03-31 10:14 EST (History)
0 users

See Also:


Attachments

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