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 44864 - IOOBEx and NoSuchElementException after package keyword
Summary: IOOBEx and NoSuchElementException after package keyword
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-15 12:27 UTC by pfelenda
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
first exception (1.23 KB, text/plain)
2004-06-15 12:27 UTC, pfelenda
Details
second exception (1.89 KB, text/plain)
2004-06-15 12:28 UTC, pfelenda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pfelenda 2004-06-15 12:27:12 UTC
[dev build 200406141800], jdk1.4.2_04
Steps:
- Create file in default package
- Type to begin of file keyword "package "
-> These Exceptions appear

---------- tail of exception --------
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:507)
	at java.util.ArrayList.remove(ArrayList.java:392)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList.remove(LightAttrList.java:130)
-------------------------------------

and this :
-------- tail of exception ----------
Annotation: Exception occurred in Request Processor
java.util.NoSuchElementException
	at
java.util.AbstractList$Itr.next(AbstractList.java:426)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList$LightAttrListIterator.next(LightAttrList.java:404)
Comment 1 pfelenda 2004-06-15 12:27:42 UTC
Created attachment 15695 [details]
first exception
Comment 2 pfelenda 2004-06-15 12:28:12 UTC
Created attachment 15696 [details]
second exception
Comment 3 Martin Matula 2004-06-20 12:53:02 UTC
Seems to be fixed by the recent error recovery fixes.
Comment 4 pfelenda 2004-08-17 14:49:33 UTC
Verified in 4.0 beta 1 build. The exception does not appear after
package keyword.