Bug 58751 - Java AST creation IllegalArgumentException
Summary: Java AST creation IllegalArgumentException
Status: CLOSED INVALID
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: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-04-15 17:40 EDT by Gary Gregory CLA
Modified: 2009-08-30 02:05 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 Gary Gregory CLA 2004-04-15 17:40:57 EDT
I got the error bellow while typing the last ")" in the text:

CharRange CHAR_RANGE_1 = new CharRange(0x0, 0xD7FF);

The class CharRange is not imported yet and underlined in red.

!ENTRY org.eclipse.core.runtime 4 2 Apr 15, 2004 14:30:04.35
!MESSAGE An internal error occurred during: "Java AST creation".
!STACK 0
java.lang.IllegalArgumentException
        at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2592)
        at
org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:2677)
        at
org.eclipse.jdt.core.dom.ASTConverter.convertToFieldDeclaration(ASTConverter.java:2722)
        at
org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleFieldDeclaration(ASTConverter.java:364)
        at
org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:324)
        at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:268)
        at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:146)
        at org.eclipse.jdt.core.dom.ASTParser.convert(ASTParser.java:697)
        at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:667)
        at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:563)
        at
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:383)
        at
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:344)
        at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInfo
rm(SelectionListenerWithASTManager.java:123)
        at
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$1.run(SelectionListenerWithASTManager
.java:101)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)
Comment 1 Gary Gregory CLA 2004-04-15 17:41:18 EDT
Version 3.0.m8
Comment 2 Olivier Thomann CLA 2004-04-16 15:47:53 EDT
Cannot reproduce trying to type the following code.
package p;

public class X {
	
	CharRange CHAR_RANGE_1 = new CharRange(0x0, 0x7FF);
	
	public static void main(String[] args) {
	}
}

Could you please provide a complete test case or try to detail steps to
reproduce if you get it often?

Thanks for your help.
Comment 3 Gary Gregory CLA 2004-04-16 16:07:30 EDT
This has not happened since the first time I ran into it. Easy enough to watch
for of course, I'll report here if it happens again.
Comment 4 Olivier Thomann CLA 2004-04-27 20:39:43 EDT
Close as REMIND. Please reopen if it happens again.
Comment 5 Frederic Fusier CLA 2005-02-17 09:37:55 EST
Closing as never reproduced in a long time
Comment 6 Denis Roy CLA 2009-08-30 02:05:02 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.