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.
This issue was reported manually by kanakmar. It already has 1 duplicates Build: NetBeans IDE 8.0 Beta (Build 201401141042) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b65, Java(TM) SE Runtime Environment, 1.8.0-ea-b123 OS: Windows 7 User Comments: kanakmar: Exception appears after click on editor hint "Use Functional Operation" Example code: List<Instance> instance = loadInstances(); for(Instance i : instance){ //there is hint on this row and after click on it, the exception appears ... } Stacktrace: java.lang.ArrayIndexOutOfBoundsException
Created attachment 144033 [details] stacktrace
... java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:403) at java.util.ArrayList.get(ArrayList.java:416) at org.netbeans.modules.java.hints.jdk.mapreduce.Refactorer.isRefactorable(Refactorer.java:99) at org.netbeans.modules.java.hints.jdk.mapreduce.ForLoopToFunctionalHint$FixImpl.performRewrite(ForLoopToFunctionalHint.java:102) at org.netbeans.spi.java.hints.JavaFix$1.process(JavaFix.java:193) ...
*** This bug has been marked as a duplicate of bug 239542 ***