Bug 42839 - Incorrect position in org.eclipse.jdt.core.dom.ArrayType
Summary: Incorrect position in org.eclipse.jdt.core.dom.ArrayType
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-09 17:57 EDT by Kelvin CLA
Modified: 2003-10-08 07:43 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 Kelvin CLA 2003-09-09 17:57:06 EDT
test case :
  public class A {
      Class[][] cls;
  }

When the visitor visit ArrayType, it first visit 'Class[][]', which the 
position is fine, but then it visit 'Class[]' which the getStartPosition() 
return -1 and getLength() return 0.
Comment 1 Olivier Thomann CLA 2003-09-10 08:53:29 EDT
Reproduced. I am working on it.
Comment 2 Olivier Thomann CLA 2003-09-10 09:18:35 EDT
Fixed and released in HEAD.
Regression tests added.
Comment 3 David Audel CLA 2003-10-08 07:43:44 EDT
Verified.