Bug 3246 - CodeCompletion - No completion on member access on anonymous class (1GD3OGA)
Summary: CodeCompletion - No completion on member access on anonymous class (1GD3OGA)
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:51 EDT by Jerome Lanneluc CLA
Modified: 2002-01-11 09:22 EST (History)
0 users

See Also:


Attachments

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