Bug 67790 - [1.5] AST: ConstructorInvocation type arguments not in source range
Summary: [1.5] AST: ConstructorInvocation type arguments not in source range
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-18 07:20 EDT by Martin Aeschlimann CLA
Modified: 2005-01-11 11:02 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 Martin Aeschlimann CLA 2004-06-18 07:20:15 EDT
cheetah 20040618 HEAD

Look at the following code in the ASTView in 3.0 mode. You will see that the
source range of the ConstructorInvocation node does't include the type arguments.

public class A<X>{

	public A() {
		<X>this();
	}
}
Comment 1 Olivier Thomann CLA 2004-06-18 10:24:15 EDT
I will investigate this one.
Comment 2 Olivier Thomann CLA 2004-06-18 10:50:23 EDT
The problem is that I don't have the position of the starting '<'. I need to
update the parser to store it.
Comment 3 Olivier Thomann CLA 2004-08-09 14:39:40 EDT
Fixed and released in HEAD.
Regression test added.
This will be reviewed once the DOMParser is available. We won't need to store
the position in the compiler nodes.