Bug 71471 - NullPointerException in jdt compiler
Summary: NullPointerException in jdt compiler
Status: CLOSED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-08-05 11:24 EDT by MH CLA
Modified: 2009-08-30 02:08 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 MH CLA 2004-08-05 11:24:08 EDT
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 ... :-(
Comment 1 Kent Johnson CLA 2004-08-05 11:25:58 EDT
Do you have the source code for the class?
Comment 2 MH CLA 2004-08-05 15:28:11 EDT
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 ...
Comment 3 Olivier Thomann CLA 2004-08-05 16:06:38 EDT
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.
Comment 4 MH CLA 2004-08-06 07:26:09 EDT
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.
Comment 5 Frederic Fusier CLA 2005-02-17 09:55:46 EST
Closing as never reproduced in a long time
Comment 6 Denis Roy CLA 2009-08-30 02:08:20 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.