Community
Participate
Working Groups
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
unsetting the target field which is currently set for something already released