Community
Participate
Working Groups
Today, something really strange happend: i wanted to save my java source code and suddenly a dialog popped up: "Java AST creation (Error: ..." and can't close this dialog as it endlessly reappears. On each close a log entry is also written: !ENTRY org.eclipse.core.runtime 4 2 Aug 05, 2004 17:10:43.226 !MESSAGE An internal error occurred during: "Java AST creation". !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.incorrectLocationForEm ptyDimension(ProblemReporter.java:1480) at org.eclipse.jdt.internal.compiler.ast.ArrayAllocationExpression.resolveType (ArrayAllocationExpression.java:132) at org.eclipse.jdt.internal.compiler.ast.Assignment.resolveType (Assignment.java:126) at org.eclipse.jdt.internal.compiler.ast.Expression.resolve (Expression.java:445) at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatement s(AbstractMethodDeclaration.java:381) at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements (MethodDeclaration.java:137) at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve (AbstractMethodDeclaration.java:359) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve (TypeDeclaration.java:921) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve (TypeDeclaration.java:963) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve (TypeDeclaration.java:910) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve (TypeDeclaration.java:970) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve (CompilationUnitDeclaration.java:273) at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve (CompilationUnitResolver.java:436) at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve (CompilationUnitResolver.java:313) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST (ASTParser.java:657) at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:574) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST (ASTProvider.java:439) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST (ASTProvider.java:391) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartList enerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:159) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run (SelectionListenerWithASTManager.java:136) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66) the only way to continue is to kill the eclipse process ... :-(
Do you have the source code for the class?
If you mean "can I have the source code": nope (commercial product). However, after I restarted Eclipse and continued editing the same source, this error didn't happen again ...
Without further details, closing as REMIND. Please reopen when you can at least provide the source code of a class that is causing the problem.
this doesn't make sense, because after restarting eclipse, this error didn't occur again - with the same source file. so it doesn't depened on the source. i guess it's some kind of internal side effect that occured after working with eclipse several hours doing lots of different stuff with eclipse.
Closing as never reproduced in a long time
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.