Bug 299494 - NullPointerException at ProblemReporter.unsafeCast(ProblemReporter.java:6319)
Summary: NullPointerException at ProblemReporter.unsafeCast(ProblemReporter.java:6319)
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-13 10:09 EST by Chris Allan CLA
Modified: 2013-06-24 11:04 EDT (History)
1 user (show)

See Also:


Attachments

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