Bug 73573 - [1.5] - CodeAssist - ArrayIndexOutOfBoundsException with genric type completion
Summary: [1.5] - CodeAssist - ArrayIndexOutOfBoundsException with genric type completion
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-09-09 11:48 EDT by David Audel CLA
Modified: 2004-09-23 09:18 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-09-09 11:48:25 EDT
build I20040907

1) create X.java
public class X {
  Hash#cursor#<
}

2) do ctrl + space at cursor location

No compleiotn appear and an ArrayIndexOutOfBoundsException occurs inside 
CompletionEngine.

java.lang.ArrayIndexOutOfBoundsException: -1
	at 
org.eclipse.jdt.internal.codeassist.complete.CompletionParser.attachOrphanCompl
etionNode(CompletionParser.java:153)
	at 
org.eclipse.jdt.internal.codeassist.complete.CompletionParser.updateRecoverySta
te(CompletionParser.java:3079)
	at org.eclipse.jdt.internal.compiler.parser.Parser.resumeOnSyntaxError
(Parser.java:8967)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse
(Parser.java:8186)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse
(Parser.java:8399)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse
(Parser.java:8364)
	at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse
(Parser.java:7107)
	at 
org.eclipse.jdt.internal.codeassist.complete.CompletionParser.dietParse
(CompletionParser.java:2703)
	at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete
(CompletionEngine.java:919)
Comment 1 David Audel CLA 2004-09-10 10:20:42 EDT
Fixed and test added
  GenericsCompletionParserTest#test0182()
  GenericsCompletionParserTest#test0183()

Comment 2 David Audel CLA 2004-09-23 09:18:33 EDT
Verified in I200409240100.