Bug 50661 - IAE while building AST
Summary: IAE while building AST
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.0 M7   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-27 04:50 EST by Martin Aeschlimann CLA
Modified: 2004-02-11 10:00 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 Martin Aeschlimann CLA 2004-01-27 04:50:43 EST
preview from frederic 20040127

The following CU can't be build:
/**
 * 
 */
package x;

/**
 * 
 */
public class B {
	p
}

When debugging in setCommetTable 3 comments are added, including a line comment
starting at position 0.

	at
org.eclipse.jdt.core.dom.CompilationUnit.setCommentTable(CompilationUnit.java:524)
	at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:151)
	at org.eclipse.jdt.core.dom.AST.parseCompilationUnit(AST.java:1034)
	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)
Comment 1 Frederic Fusier CLA 2004-01-27 09:15:55 EST
Fixed.
Note that the code on which this problem occured were not released...
A test case has been added in jdt.core.dom.ASTConverterJavadocTest to verify 
that this won't happen again...
Comment 2 David Audel CLA 2004-02-11 10:00:18 EST
Verified for 3.0M7