Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 191909

Summary: Missing deprecation warning in problems view
Product: [Eclipse Project] JDT Reporter: Benno Baumgartner <benno.baumgartner>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Benno Baumgartner CLA 2007-06-11 05:22:39 EDT
I20070608-1718

Given:
package test1;
public class E01 {
	@Deprecated
	public static int x = 5, y= 10;
}

package test1;
public class E02 {
	public void foo() {
		System.out.println(E01.x);
		System.out.println(E01.y);
	}
}
Is:
 Editor for E02 shows two warning on x and y, which is correct: Java Lang spec 3, 8.3: "More then one field may be declared in a single field declaration by using more then one declarator; the FieldModifiers and Type apply to all the declarations in the declaration."
But problems view shows only one warning for x
Should:
 Problem view should show both warnings

See also bug 191908
Comment 1 Olivier Thomann CLA 2007-06-14 15:23:26 EDT

*** This bug has been marked as a duplicate of bug 191908 ***