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

Summary: IOOBEx and NoSuchElementException after package keyword
Product: java Reporter: pfelenda <pfelenda>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: first exception
second exception

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.