Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326573 - NPE during incompatibleReturnType error reporting
Summary: NPE during incompatibleReturnType error reporting
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.2 P   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 326574
  Show dependency tree
 
Reported: 2010-09-29 14:45 EDT by Chris Jaun CLA
Modified: 2010-10-09 08:28 EDT (History)
1 user (show)

See Also:
thatnitind: review+


Attachments
patch (1.45 KB, patch)
2010-09-29 14:46 EDT, Chris Jaun CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jaun CLA 2010-09-29 14:45:20 EDT
java.lang.NullPointerException
at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.sourceStart(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.problem.ProblemReporter.incompatibleReturnType(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodVerifier.reportIncompatibleReturnTypeError(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodVerifier.checkAgainstInheritedMethods(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodVerifier.checkMethods(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodVerifier.verify(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.verifyMethods(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.verifyMethods(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Unknown Source)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.compile(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.builder.BatchImageBuilder.build(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildAll(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.build(Unknown Source)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(Unknown Source)
at org.eclipse.core.internal.events.AutoBuildJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)


This is happening when it tries to verify methods form a "nextType" that has already been "cleaned" which nulls out its scope information.

If it has already been cleaned then its methods have already been verified.
Comment 1 Chris Jaun CLA 2010-09-29 14:46:16 EDT
Created attachment 179881 [details]
patch
Comment 2 Carl Anderson CLA 2010-10-09 08:28:01 EDT
Committed to R3_2_2_patches