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.
[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)
Created attachment 15695 [details] first exception
Created attachment 15696 [details] second exception
Seems to be fixed by the recent error recovery fixes.
Verified in 4.0 beta 1 build. The exception does not appear after package keyword.