Bug 309396 - NPE thrown during compilation
Summary: NPE thrown during compilation
Status: VERIFIED DUPLICATE of bug 306464
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 17:42 EDT by Antoine Toulmé CLA
Modified: 2010-08-04 11:04 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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