Bug 18169

Summary: ast: incorrect length of SingleVariableDeclaration for some array declarations
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-05-29 09:34:00 EDT
void m(int a, int b[]){}
void m1(int a, int[] b){}

in m the length of the declaration of b is, incorrectly, 5
in m1 it is, correctly, 7
Comment 1 Olivier Thomann CLA 2002-05-29 09:41:54 EDT
I will investigate. I would not be suprised if the positions returned by the parser are incorrect.
Comment 2 Olivier Thomann CLA 2002-05-29 18:34:44 EDT
Regression tests added.
Fixed and released in HEAD.
Comment 3 Olivier Thomann CLA 2002-06-03 14:08:10 EDT
Verified in F2.
Comment 4 Olivier Thomann CLA 2002-06-03 14:08:19 EDT
Verified.