Bug 50853 - IllegalArgumentException in ASTNode.checkNewChild
Summary: IllegalArgumentException in ASTNode.checkNewChild
Status: RESOLVED DUPLICATE of bug 50849
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 M7   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-29 10:19 EST by Dani Megert CLA
Modified: 2004-01-29 12:05 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 Dani Megert CLA 2004-01-29 10:19:00 EST
I20040128

Getting tons of IAEs.

Test Case:
1. Have source of JDT UI
2. Open TypeHierarchyUtil (rev. 1.33)
3. Add } after closing braket of openEditor(Object, boolean)

Log:
!ENTRY org.eclipse.core.runtime 4 2 Jan 29, 2004 16:10:51.936
!MESSAGE An internal error occurred during: "Java AST creation".
!STACK 0
java.lang.IllegalArgumentException
	at org.eclipse.jdt.core.dom.ASTNode.checkNewChild(ASTNode.java:1101)
	at org.eclipse.jdt.core.dom.ASTNode.replaceChild(ASTNode.java:1055)
	at org.eclipse.jdt.core.dom.BodyDeclaration.setJavadoc(BodyDeclaration.java:87)
	at
org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:339)
	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:268)
	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:156)
	at org.eclipse.jdt.core.dom.AST.parseCompilationUnit(AST.java:932)
	at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.computeAST(SelectionListenerWithASTManager.java:125)
	at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:144)
	at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$1.run(SelectionListenerWithASTManager.java:99)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)
Comment 1 Olivier Thomann CLA 2004-01-29 12:02:06 EST
I think this is a duplicate of bug 47396.
Comment 2 Olivier Thomann CLA 2004-01-29 12:05:28 EST

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