Bug 309396

Summary: NPE thrown during compilation
Product: [Eclipse Project] JDT Reporter: Antoine Toulmé <antoine>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, Olivier_Thomann, satyam.kandula
Version: 3.6   
Target Milestone: 3.7 M1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Antoine Toulmé CLA 2010-04-15 17:42:24 EDT
I get this NPE during compilation. I use 3.6M6 on Snow Leopard 10.6.2.

!ENTRY org.eclipse.core.resources 4 75 2010-04-15 14:40:18.989
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.jdt.core 4 75 2010-04-15 14:40:18.989
!MESSAGE Errors running builder 'Java Builder' on project 'xxx.xxx.xxx'.
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.missingTypeInMethod(ProblemReporter.java:5116)
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:448)
	at org.eclipse.jdt.internal.compiler.ast.AllocationExpression.resolveType(AllocationExpression.java:307)
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:359)
	at org.eclipse.jdt.internal.compiler.ast.Assignment.resolveType(Assignment.java:157)
	at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:915)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:451)
	at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:212)
	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:410)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1147)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1235)
	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:531)
	at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:759)
	at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
	at java.lang.Thread.run(Thread.java:637)
Comment 1 Antoine Toulmé CLA 2010-04-15 17:43:30 EDT
Sorry, dup of 306464.

*** This bug has been marked as a duplicate of bug 306464 ***
Comment 2 Olivier Thomann CLA 2010-04-15 19:11:54 EDT
If you could provide a test case, this would be great.
Anything in your .log file that could be interesting?
Comment 3 Satyam Kandula CLA 2010-08-04 11:04:41 EDT
Verified for 3.7M1 using build I20100802-1800