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 254785 - IndexOutOfBoundsException: Index: 1, Size: 1
Summary: IndexOutOfBoundsException: Index: 1, Size: 1
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2015-08-27 13:51 UTC by Alexandr Scherbatiy
Modified: 2015-11-30 19:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219492


Attachments
stacktrace (2.79 KB, text/plain)
2015-08-27 13:51 UTC, Alexandr Scherbatiy
Details
stacktrace (2.71 KB, text/plain)
2015-08-27 14:14 UTC, Alexandr Scherbatiy
Details
stacktrace (2.79 KB, text/plain)
2015-08-28 08:14 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2015-08-27 13:51:05 UTC
Build: NetBeans Dev JDK9 branch (Build 201506180405)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b15, Java(TM) SE Runtime Environment, 1.8.0_40-ea-b11
OS: Mac OS X

User Comments:
sunflower: Edir the code




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
   at com.sun.tools.javac.util.List.get(List.java:477)
   at org.netbeans.modules.java.hints.jdk.ConvertToLambdaPreconditionChecker.getMethodFromFunctionalInterface(ConvertToLambdaPreconditionChecker.java:134)
   at org.netbeans.modules.java.hints.jdk.ConvertToLambdaPreconditionChecker.<init>(ConvertToLambdaPreconditionChecker.java:106)
   at org.netbeans.modules.java.hints.jdk.ConvertToLambda.computeAnnonymousToLambda(ConvertToLambda.java:102)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:0)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Comment 1 Alexandr Scherbatiy 2015-08-27 13:51:07 UTC
Created attachment 155689 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2015-08-27 14:14:49 UTC
Created attachment 155690 [details]
stacktrace

edit code
Comment 3 Alexandr Scherbatiy 2015-08-28 08:14:53 UTC
Created attachment 155706 [details]
stacktrace

edit code
Comment 4 Dusan Balek 2015-11-19 09:41:24 UTC
Fixed in jet-main jdk9 branch.

http://hg.netbeans.org/jet-main/rev/f73d3adc7448
Comment 5 Quality Engineering 2015-11-30 19:08:54 UTC
Integrated into 'main-silver', will be available in build *201511301649* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f73d3adc7448
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #254785 - IndexOutOfBoundsException - fixed.