This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 56532 - [gjast] IndexOutOfBoundsException in gjast.ASModifiers.getSubTrees
Summary: [gjast] IndexOutOfBoundsException in gjast.ASModifiers.getSubTrees
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ tball
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-16 12:56 UTC by Jan Pokorsky
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IndexOutOfBoundsException (2.03 KB, text/plain)
2005-03-16 12:58 UTC, Jan Pokorsky
Details
NewClass.java.dump (1.70 KB, text/plain)
2005-03-16 16:11 UTC, Jan Pokorsky
Details
NewClass.java_1.dump (1.70 KB, text/plain)
2005-03-16 16:12 UTC, Jan Pokorsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pokorsky 2005-03-16 12:56:46 UTC
[jdk1.5.0]
When I added an annotation (via code completion) to a simple class I get
following exception.

public @interface MyAnn {
}

public @MyAnn class NewClass {
  public NewClass() {
  }
}
Comment 1 Jan Pokorsky 2005-03-16 12:58:13 UTC
Created attachment 20888 [details]
IndexOutOfBoundsException
Comment 2 Jan Pokorsky 2005-03-16 16:10:29 UTC
I am able to reproduce it quite reliably now. I have also found following two
.dump files in my console so I attach them here as suggested in the error message.
Comment 3 Jan Pokorsky 2005-03-16 16:11:39 UTC
Created attachment 20901 [details]
NewClass.java.dump
Comment 4 Jan Pokorsky 2005-03-16 16:12:05 UTC
Created attachment 20902 [details]
NewClass.java_1.dump
Comment 5 Martin Matula 2005-03-16 16:38:34 UTC
Tom, please look at it. The first part of the dump file contains the source code
in the state when the parser failed to parse it and (separated by dashes) the
dump contains the exception that was thrown from the parser when parsing that file.
Comment 6 _ tball 2005-03-16 22:52:28 UTC
Fixed IOBE.  The AST now incorrectly claims that the name of the annotation is
"class" (when source has "public @class Foo"), but that's the only way to ensure
that the error annotation is represented.  The error checker correctly reports
the problem, with the correct error text.
Comment 7 _ tball 2005-03-16 22:52:54 UTC
Forgot to mark as fixed...
Comment 8 Jan Pokorsky 2005-03-17 13:02:28 UTC
seems to be working -> verified
Comment 9 Quality Engineering 2007-09-20 11:50:57 UTC
Reorganization of java component