Bug 24499

Summary: AST: No binding for instance access in constructor invocation
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.