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 230600

Summary: IndexOutOfBoundsException: -1
Product: java Reporter: janario
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: janario
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 201078
Attachments: stacktrace

Description janario 2013-06-01 01:07:39 UTC
This issue was reported manually by janario.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build jdk8lambda-1735-on-20130529)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
janario: Using 'use lambda' hint




Stacktrace: 
java.lang.IndexOutOfBoundsException: -1
   at com.sun.tools.javac.util.List.get(List.java:455)
   at org.netbeans.modules.java.hints.jdk.ConvertToLambdaPreconditionChecker.findExpectedType(ConvertToLambdaPreconditionChecker.java:475)
   at org.netbeans.modules.java.hints.jdk.ConvertToLambdaPreconditionChecker.needsCastToSupertype(ConvertToLambdaPreconditionChecker.java:431)
   at org.netbeans.modules.java.hints.jdk.ConvertToLambdaPreconditionChecker.checkForTypeMismatch(ConvertToLambdaPreconditionChecker.java:166)
   at org.netbeans.modules.java.hints.jdk.ConvertToLambdaPreconditionChecker.ensurePreconditionsAreChecked(ConvertToLambdaPreconditionChecker.java:119)
   at org.netbeans.modules.java.hints.jdk.ConvertToLambdaPreconditionChecker.foundRefToThisOrSuper(ConvertToLambdaPreconditionChecker.java:137)
Comment 1 janario 2013-06-01 01:07:40 UTC
Created attachment 135197 [details]
stacktrace
Comment 2 Dusan Balek 2013-06-04 07:17:28 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/46697694b2de
Comment 3 Quality Engineering 2013-06-05 09:32:17 UTC
Integrated into 'main-golden', will be available in build *201306050626* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/46697694b2de
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #230600: IndexOutOfBoundsException fixed.