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 200807030102) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Linux, 2.6.22-15-generic, i386 User Comments: AIOOBE whne using insert code menu to override methods.
Created attachment 63872 [details] stacktrace
Steps to reproduce: public enum NewEnum implements NewInterface<String> { A(1) { // <- call override methods here }; int x; private NewEnum(int x) { this.x = x; } public void perform() { throw new UnsupportedOperationException("Not supported yet."); } public String getIt() { throw new UnsupportedOperationException("Not supported yet."); } }
*** Issue 135651 has been marked as a duplicate of this issue. ***
*** Issue 128559 has been marked as a duplicate of this issue. ***
Problem seems to be (probably) in TreeInfo.getStartpos(), which is called from CasualDiff.java:1129 through getBounds() and returns -1 for tree with tag IDENT (NewEnum).
Fixed. changeset f1b8e86d34d2 in main details: http://hg.netbeans.org/main?cmd=changeset;node=f1b8e86d34d2
Integrated into 'main-golden', available in build *200808021401* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/f1b8e86d34d2 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #138906: ArrayIndexOutOfBoundsException: -1 from CharBuffer.eatAwayChars - fixed.
*** Issue 132166 has been marked as a duplicate of this issue. ***
*** Issue 145910 has been marked as a duplicate of this issue. ***
*** Issue 146517 has been marked as a duplicate of this issue. ***
*** Issue 146847 has been marked as a duplicate of this issue. ***
Reopening - reproduced in NetBeans IDE 6.5 (Build 200811100001) http://statistics.netbeans.org/exceptions/detail.do?id=141881
Fixed. changeset e71e0954a21d in main details: http://hg.netbeans.org/main?cmd=changeset;node=e71e0954a21d
Integrated into 'main-golden', will be available in build *200812050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e71e0954a21d User: Dusan Balek <dbalek@netbeans.org> Log: Issue #138906: ArrayIndexOutOfBoundsException: -1 from CharBuffer.eatAwayChars - fixed.