Community
Participate
Working Groups
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:
What result do you expect? The source is not an expression. Did you check the behavior on Windows?
So far I cannot reproduce. I could try remote debugging if this can help to track it down.
Closing as NOT_ECLIPSE. This is a JIT issue.
Verified for 3.5M6 using I20090310-0100