Bug 11371 - DOM/AST: node missing for super constructor call
Summary: DOM/AST: node missing for super constructor call
Status: RESOLVED 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.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-14 12:14 EST by Dirk Baeumer CLA
Modified: 2002-03-14 13:52 EST (History)
1 user (show)

See Also:


Attachments

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