Bug 24499 - AST: No binding for instance access in constructor invocation
Summary: AST: No binding for instance access in constructor invocation
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-08 09:28 EDT by Martin Aeschlimann CLA
Modified: 2002-10-17 10:29 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 Martin Aeschlimann CLA 2002-10-08 09:28:41 EDT
see bug 24449:
In this code 'coo2()' is has no binding due to a access problem.

public class C {
	private C() {
		this(coo2());
	}
	
	private C(int i) {
	}

	private int coo2() {
		return 7;
	}
}
Comment 1 Martin Aeschlimann CLA 2002-10-08 09:38:42 EDT
I have a test case for this:
LocalCorrectionsQuickFixTest.testNonStaticMethodRequestedInConstructor
Comment 2 Olivier Thomann CLA 2002-10-08 09:44:32 EDT
I will investigate.
Comment 3 Olivier Thomann CLA 2002-10-08 11:26:35 EDT
Fixed and released in 2.1 stream. Regression tests added.
Comment 4 Olivier Thomann CLA 2002-10-08 11:39:37 EDT
Change target milestone.
Comment 5 David Audel CLA 2002-10-17 10:29:06 EDT
Verified.