Bug 209148 - [assist] AIOBE during code assist
Summary: [assist] AIOBE during code assist
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 RC1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-08 04:58 EST by David Audel CLA
Modified: 2008-05-13 11:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2007-11-08 04:58:51 EST
build I20071101-2000

package test;
public class X {
	<T>void foo() {
		this.<X>foo(|); // do ctrl+space at |
	}
}

The following exception caught by CompletionEngine:

java.lang.ArrayIndexOutOfBoundsException: -1
	at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.checkInvocation(CompletionParser.java:1388)
	at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.completionIdentifierCheck(CompletionParser.java:1825)
	at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.updateRecoveryState(CompletionParser.java:4413)
	at org.eclipse.jdt.internal.compiler.parser.Parser.resumeOnSyntaxError(Parser.java:10274)
	at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9109)
	at org.eclipse.jdt.internal.codeassist.impl.AssistParser.parseBlockStatements(AssistParser.java:1358)
	at org.eclipse.jdt.internal.codeassist.impl.AssistParser.parseBlockStatements(AssistParser.java:1211)
	at org.eclipse.jdt.internal.codeassist.impl.Engine.parseBlockStatements(Engine.java:288)
	at org.eclipse.jdt.internal.codeassist.impl.Engine.parseBlockStatements(Engine.java:251)
	at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete(CompletionEngine.java:2461)
	at org.eclipse.jdt.internal.core.Openable.codeComplete(Openable.java:124)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:315)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:308)
Comment 1 David Audel CLA 2008-05-07 06:41:35 EDT
I do not reproduce the bug in I20080502-0100.

Closing as WORKSFORME.
Comment 2 Jerome Lanneluc CLA 2008-05-13 11:30:45 EDT
Verified for 3.4RC1 using I20080510-2000