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 240464

Summary: IndexOutOfBoundsException: Index: 4, Size: 2
Product: java Reporter: infonaut
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: mps77
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 200202
Attachments: stacktrace

Description infonaut 2014-01-14 16:58:01 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
mps77: inspect

GUEST: Run Inspect... with Java Netbeans hints all set open-ig.googlecode.com

mps77: inspect & tranform on full j2se project...

infonaut: on opening a java source file

mps77: inspect




Stacktrace: 
java.lang.IndexOutOfBoundsException: Index: 4, Size: 2
   at com.sun.tools.javac.util.List.get(List.java:462)
   at org.netbeans.modules.java.hints.suggestions.ExpectedTypeResolver.visitMethodOrNew(ExpectedTypeResolver.java:553)
   at org.netbeans.modules.java.hints.suggestions.ExpectedTypeResolver.visitMethodInvocation(ExpectedTypeResolver.java:527)
   at org.netbeans.modules.java.hints.suggestions.ExpectedTypeResolver.visitMethodInvocation(ExpectedTypeResolver.java:144)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1477)
   at org.netbeans.modules.java.hints.suggestions.ExpectedTypeResolver.scan(ExpectedTypeResolver.java:246)
Comment 1 infonaut 2014-01-14 16:58:03 UTC
Created attachment 143953 [details]
stacktrace
Comment 2 Svata Dedic 2014-01-20 10:24:39 UTC
Supposedly fixed by changes made for issue #229951, whcih also improved varargs handling.