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 - IndexOutOfBoundsException: -1
Summary: IndexOutOfBoundsException: -1
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-01 01:07 UTC by janario
Modified: 2013-06-05 09:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201078


Attachments
stacktrace (4.06 KB, text/plain)
2013-06-01 01:07 UTC, janario
Details

Note You need to log in before you can comment on or make changes to this bug.
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.