Bug 58521

Summary: qualified this can be assigned
Product: [Eclipse Project] JDT Reporter: Stephan Herrmann <stephan.herrmann>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1.2   
Target Milestone: 2.1.3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stephan Herrmann CLA 2004-04-14 13:30:50 EDT
The compiler allows the following program, which violates the JLS. 
The illegal statement is silently ignored. 
 
public class Outer { 
	class Inner { 
		Inner() { 
			System.out.println(Outer.this); 
			Outer.this = new Outer(); // illegal 
			System.out.println(Outer.this); 
		} 
	} 
	public static void main (String[] args) { 
		new Outer().new Inner(); 
	} 
}
Comment 1 Philipe Mulet CLA 2004-04-15 07:33:21 EDT
This was fixed in Release 2.1.3



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