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

Bug 421902

Summary: [1.8][reconciler] Deleting an interface declaration shows no errors on uses of the interface
Product: [Eclipse Project] JDT Reporter: Srikanth Sankaran <srikanth_sankaran>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.4   
Target Milestone: BETA J8   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Srikanth Sankaran CLA 2013-11-17 05:01:01 EST
BETA_JAVA8:

Start with the following program in the editor:

interface I {
	void foo();
}
interface J {
	int foo();
}
public class X {
	static void goo(I i) {
		System.out.println("goo(I)");
	}
	static void goo(J j) {
		System.out.println("goo(J)");
	}
	public static void main(String[] args) {
		final boolean x = true;
//		goo(()-> goo((J)null));
	}
	
	int f() {
		final boolean x = true;
		while (x);
	}
}

Delete the first three lines of code - until you save or otherwise modify
the buffer you don't get to see errors on the use of I.