Bug 22939

Summary: ast: incorrect range for a name in brackets
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: piras
Version: 2.0   
Target Milestone: 2.1 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on:    
Bug Blocks: 22938    

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)