Bug 10759 - ast: incorrect length of SimpleName (subsubnode of ArrayType)
Summary: ast: incorrect length of SimpleName (subsubnode of ArrayType)
Status: RESOLVED 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 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-05 09:13 EST by Adam Kiezun CLA
Modified: 2002-03-05 11:56 EST (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-03-05 09:13:54 EST
package p;
public class A{
	public static class Inner{}
	public static void m(){
		Inner[] i;
	}
}

ArrayType (Inner[], length 7)

has subnode:
SimpleType(Inner, length 5) <<BUG!

which has subnode
SimpleName(Inner, length 5) <<BUG!
Comment 1 Olivier Thomann CLA 2002-03-05 09:51:50 EST
What is the bug exactly?
For the simple name, 'Inner' looks ok for me.
What do you expect? 
Comment 2 Adam Kiezun CLA 2002-03-05 09:59:16 EST
sorry, stupid me - to hectic a day i guess
the description should be:

ArrayType (Inner[], length 7)

has subnode:
SimpleType(Inner, length 7) <<BUG!

which has subnode
SimpleName(Inner, length 7) <<BUG!

it should be clear now
Comment 3 Olivier Thomann CLA 2002-03-05 10:01:15 EST
So you expect to get:
ArrayType (Inner[], length 7)

has subnode:
SimpleType(Inner, length 5)

which has subnode
SimpleName(Inner, length 5)

Am I right?

Comment 4 Adam Kiezun CLA 2002-03-05 10:11:44 EST
exactly
Comment 5 Olivier Thomann CLA 2002-03-05 11:55:54 EST
Fixed and released in HEAD. Regression tests added.