Bug 3246

Summary: CodeCompletion - No completion on member access on anonymous class (1GD3OGA)
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: All   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2001-10-10 22:51:56 EDT
The following gives no completion:

[public class X {
	int field;
	X(int field) {
		this.field = field;
	}
	int bar() {
		return 1;
	}
	void foo() {
		int n = (new X(bar) {
		}).f |<-------------------------------- code assist here
	}
}]

	whereas the following gives a completion on field:
[public class X {
	int field;
	X(int field) {
		this.field = field;
	}
	int bar() {
		return 1;
	}
	void foo() {
		int n = (new X(bar() {
		}).f |<-------------------------------- code assist here
	}
}]

	The only difference is the argument to the constructor X is "bar" in the first case, and it is "bar(" in the second case.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-23 23:52:46 EDT
PRODUCT VERSION:
	SDK 102

Comment 2 David Audel CLA 2001-11-28 11:29:22 EST
Closed.