Bug 58521 - qualified this can be assigned
Summary: qualified this can be assigned
Status: RESOLVED DUPLICATE of bug 46918
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.1.3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-14 13:30 EDT by Stephan Herrmann CLA
Modified: 2004-04-15 07:33 EDT (History)
0 users

See Also:


Attachments

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