Bug 22939 - ast: incorrect range for a name in brackets
Summary: ast: incorrect range for a name in brackets
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 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 22938
  Show dependency tree
 
Reported: 2002-08-28 06:45 EDT by Adam Kiezun CLA
Modified: 2002-09-19 11:06 EDT (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 Adam Kiezun CLA 2002-08-28 06:45:54 EDT
class A {
	void f(){
		String xxxx= "xx";
		String y= ( xxxx );
	}
}

the range of the xxxx name in the declaration of y spans over the whole 
brackated area (i.e. includes the 2 spaces)
Comment 1 Adam Kiezun CLA 2002-08-28 06:59:54 EDT
same for casts:
class AA{
 void f(){
   AA a= ( AA )this;
 }
}
Comment 2 Olivier Thomann CLA 2002-09-04 10:57:07 EDT
Fixed and released in 2.1 stream.
Comment 3 David Audel CLA 2002-09-19 04:49:56 EDT
Verified.
Comment 4 Olivier Thomann CLA 2002-09-19 11:06:50 EDT
Regression test added (test0376)