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 252914

Summary: IndexOutOfBoundsException: Index: 0, Size: 0
Product: java Reporter: gilbertoca <gilbertoca>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: gjong
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207087
Attachments: stacktrace

Description gilbertoca 2015-06-10 19:34:13 UTC
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)
Comment 1 gilbertoca 2015-06-10 19:34:16 UTC
Created attachment 154143 [details]
stacktrace
Comment 2 Dusan Balek 2015-07-21 08:12:05 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/a0a216cfc39b
Comment 3 Quality Engineering 2015-07-22 04:38:29 UTC
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.