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.
Build: NetBeans IDE Dev (Build 20110815-46e7ed429e28) VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04 OS: Windows 7 Stacktrace: java.util.NoSuchElementException at java.util.LinkedList$ListItr.previous(LinkedList.java:712) at java.util.Collections$UnmodifiableList$1.previous(Collections.java:1178) at org.netbeans.modules.java.source.queriesimpl.JavaOperationsImpl.getMethodSpan(JavaOperationsImpl.java:233) at org.netbeans.modules.java.source.queries.api.Queries.getMethodSpan(Queries.java:205) at org.netbeans.modules.form.FormJavaSource$8.apply(FormJavaSource.java:248) at org.netbeans.modules.form.FormJavaSource$8.apply(FormJavaSource.java:245)
Created attachment 110083 [details] stacktrace
The exception is thrown by List<Comment> cmts = ... end = cmts.listIterator().previous().pos(); in JavaOperationsImpl. There is no surprise it throws NoSuchElementException. There is no element preceding the first element => reassigning to java/Source.
Fixed jet-main 0c3cb059d93b
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/0c3cb059d93b User: Tomas Zezula <tzezula@netbeans.org> Log: #201095:[70cat] java.util.NoSuchElementException at java.util.LinkedList$ListItr.previous