Bug 72501 - [1.5] CodeAssist - ArrayIndexOutOfBoundsException with ParameterizedQualifiedTypeReference
Summary: [1.5] CodeAssist - ArrayIndexOutOfBoundsException with ParameterizedQualified...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-24 09:54 EDT by David Audel CLA
Modified: 2004-09-23 06:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2004-08-24 09:54:41 EDT
build I20040817 + head

1) create X.java
public class X <T> {
  class Y {}
    void foo(){
      X<T>.Y<Stri#cursor#
    }
  }
}

2) do ctrl + space at cursor location

An ArrayIndexOutOfBoundsException  is caught by CompletionEngine

java.lang.ArrayIndexOutOfBoundsException: 0
	at 
org.eclipse.jdt.internal.codeassist.CompletionEngine.computeExpectedTypes
(CompletionEngine.java:3476)
	at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete
(CompletionEngine.java:416)
	at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete
(CompletionEngine.java:985)
	at org.eclipse.jdt.internal.core.Openable.codeComplete
(Openable.java:123)
	at ...
Comment 1 David Audel CLA 2004-08-26 05:06:53 EDT
Fixed and test added
  CompletionParserTests_1_5#test0031()
Comment 2 David Audel CLA 2004-09-23 06:17:08 EDT
Verified in I200409212000.