Bug 47326 - Exception when creating AST from invalid interface constructor
Summary: Exception when creating AST from invalid interface constructor
Status: RESOLVED DUPLICATE of bug 47396
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-24 04:54 EST by Markus Keller CLA
Modified: 2003-11-26 08:38 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2003-11-24 04:54:34 EST
3.0 M5

- new interface 'Inter':

public interface Inter {
	public Inter();
}

-> Exception whenever I activate the editor (which triggers AST creation now):

Error Nov 24, 2003 10:47:28.546 An internal error occurred during: "Java AST
creation".
java.lang.IllegalArgumentException
	at java.lang.Throwable.<init>(Throwable.java)
	at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java)
	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:701)
	at
org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:244)
	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:183)
	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:81)
	at org.eclipse.jdt.core.dom.AST.parseCompilationUnit(AST.java:354)
	at org.eclipse.jdt.core.dom.AST.parseCompilationUnit(AST.java:247)
	at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.computeAST(SelectionListenerWithASTManager.java:106)
	at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:116)
	at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$1.run(SelectionListenerWithASTManager.java:92)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)
Comment 1 Olivier Thomann CLA 2003-11-25 23:04:07 EST
I will investigate.
Comment 2 Olivier Thomann CLA 2003-11-26 08:38:49 EST
Regression test added.

*** This bug has been marked as a duplicate of 47396 ***