Bug 11371

Summary: DOM/AST: node missing for super constructor call
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akiezun
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dirk Baeumer CLA 2002-03-14 12:14:47 EST
Build 20020312

package trycatch_in;

import java.net.MalformedURLException;

public class TestSuperCall {
	static class A {
		public A(int i) throws MalformedURLException {
		}
	}
	
	static class B extends A {
		public B() {
			super(10);
		}
	}
}

In the above example the AST doesn't contain a node for the super constructor 
call super(10);

And another question: which node will represent a this constructor call ?
Comment 1 Dirk Baeumer CLA 2002-03-14 12:19:20 EST
Same is true for a this constructor call. Here is an example

package trycatch_in;

import java.net.MalformedURLException;

public class TestThisConstructorCall {
	public TestThisConstructorCall(int i) throws MalformedURLException {
	}
	public TestThisConstructorCall() {
		this(10);
	}
}
Comment 2 Dirk Baeumer CLA 2002-03-14 12:20:38 EST
Both problems also exist if the CU is compile error free
Comment 3 Olivier Thomann CLA 2002-03-14 12:22:46 EST
Don't panic :-). I am looking into it. I should have an explanation soon.
Comment 4 Dirk Baeumer CLA 2002-03-14 12:39:20 EST
I just wanted to provide useful information ;-))
Comment 5 Olivier Thomann CLA 2002-03-14 13:28:28 EST
The problem comes from the fact that the explicit constructor call is not part of the 
constructor's declaration statements. It is a specific field. It is fixed now. I will release it 
for next build.
Comment 6 Olivier Thomann CLA 2002-03-14 13:52:05 EST
Fixed and released in HEAD.