Bug 264590 - ASTParser.createAST (new NullProgressMonitor()) hangs on Linux
Summary: ASTParser.createAST (new NullProgressMonitor()) hangs on Linux
Status: VERIFIED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: 3.5 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: vm
Depends on:
Blocks:
 
Reported: 2009-02-11 15:37 EST by BensonN CLA
Modified: 2009-03-10 10:47 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BensonN CLA 2009-02-11 15:37:56 EST
Build ID: 3.5

Steps To Reproduce:
ASTParser.createAST (new NullProgressMonitor()) causes a hang on Linux machine: (It works fine on Eclipse 3.4, but not on 3.5), here is the example code:

String commentsText = "/**\n * @generated\n */\n";
char[] source = commentsText.toCharArray();
ASTParser parser = ASTParser.newParser(AST.JLS3);
parser.setKind (ASTParser.K_EXPRESSION);
parser.setSource (source);
parser.setSourceRange(0, source.length); 

ASTNode newBody = parser.createAST (new NullProgressMonitor());
if(newBody != null)
{
	...							}

More information:
Comment 1 Olivier Thomann CLA 2009-02-17 19:15:45 EST
What result do you expect?
The source is not an expression.

Did you check the behavior on Windows?
Comment 2 Olivier Thomann CLA 2009-02-17 20:14:57 EST
So far I cannot reproduce.
I could try remote debugging if this can help to track it down.
Comment 3 Olivier Thomann CLA 2009-02-18 10:29:57 EST
Closing as NOT_ECLIPSE.
This is a JIT issue.
Comment 4 Kent Johnson CLA 2009-03-10 10:47:28 EDT
Verified for 3.5M6 using I20090310-0100