Bug 299494

Summary: NullPointerException at ProblemReporter.unsafeCast(ProblemReporter.java:6319)
Product: [Tools] AspectJ Reporter: Chris Allan <chris.allan>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3 CC: aclement
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Chris Allan CLA 2010-01-13 10:09:02 EST
Build Identifier: 1.6.7.20100105084524

When building a project with a single file containing the following code, I get an exception.  I'd expect a standard compilation error rather than an exception in this case:
-----------------
import java.util.List;
public aspect A {
	Object around(String b) :call (* *.*()) && this(b) 
	{
		List<String> result = (List<String>) proceed(b);
	}	
}
--------------------

java.lang.NullPointerException
at org.aspectj.org.eclipse.jdt.internal.compiler.problem.ProblemReporter.unsafeCast(ProblemReporter.java:6319)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.CastExpression.resolveType(CastExpression.java:441)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:196)
at org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveSta ... oBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Compile error: NullPointerException thrown: null

Reproducible: Always
Comment 1 Andrew Clement CLA 2013-06-24 11:04:51 EDT
unsetting the target field which is currently set for something already released