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 8.0.2 (Build 201411181905) VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14 OS: Linux User Comments: gilbertoca: press ALT+ENTER while in the INTERFACE file and creating the implementation one. But the implementation file show up empty. GUEST: I used "implement interface" hint to implement a generic interface, and the generated class file was empty at all. Than I was given this exception. GUEST: I noticed an exception notification, but I do not remember when it was thrown. GUEST: Not sure what triggered this. Perhaps happened while I was creating a subclass of a partly instantiated abstract class? gjong: Creating an implementation of an interface using CTRL + ENTER followed by selecting the implement interface option. gjong: Using the implement interface functionality from within an interface file. Stacktrace: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at com.sun.tools.javac.util.List.get(List.java:475) at org.netbeans.modules.java.hints.suggestions.CreateSubclass$CreateSubclassFix$2$1.run(CreateSubclass.java:296) at org.netbeans.modules.java.hints.suggestions.CreateSubclass$CreateSubclassFix$2$1.run(CreateSubclass.java:290) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:649) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:639) at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:493)
Created attachment 154143 [details] stacktrace
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/a0a216cfc39b
Integrated into 'main-silver', will be available in build *201507220303* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a0a216cfc39b User: Dusan Balek <dbalek@netbeans.org> Log: Issue #252914 - IndexOutOfBoundsException - fixed.