Bug 18169 - ast: incorrect length of SingleVariableDeclaration for some array declarations
Summary: ast: incorrect length of SingleVariableDeclaration for some array declarations
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.0 F2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-29 09:34 EDT by Adam Kiezun CLA
Modified: 2002-06-03 14:08 EDT (History)
0 users

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-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.