Bug 8696

Summary: Code assist doesn't work in initializer of anonymous inner class
Product: [Eclipse Project] JDT Reporter: Peter Burka <peter_burka>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Peter Burka CLA 2002-01-29 14:38:15 EST
Enter the following class into Eclipse:

package foo;
public class Bar {
	public static void main(String[] args) {
		new Object() {
			{ this. }	
		};
	}
}

Place your cursor after the 'this.' and press Ctrl+space.
Code assist fails to offer any suggestions.

If the inner class in not anonymous, code assist works as expected.

(Tested against 20020125 build)
Comment 1 Peter Burka CLA 2002-01-29 14:41:21 EST
Worse, code assist seems not to work properly after an instance initializer in 
an anonymous innner class, even in code outside of the initializer.
Comment 2 David Audel CLA 2002-02-11 06:47:45 EST
Fixed