Community
Participate
Working Groups
When executing an Clean Project in Eclipse with Automatic Building I receive the error below. line from the top stack, e.g. "SomeFile.jara:243" java.lang.NullPointerException at org.aspectj.ajdt.internal.compiler.problem.AjProblemReporter.methodMustOverride(AjProblemReporter.java:380) at org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:153) at org.aspectj.org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:400) at org.aspectj.org.eclipse.jdt.internal.compiler.ast.TypeDe ... pter.java:107) at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191) NullPointerException thrown: null
Ideally I need a small example program that demonstrates the failure so i can fix it. You seem to have ITDs that are being used to ensure a method is being overridden and that's what is causing the failure - if that helps you narrow it down to a test program? Or, you can try deactivating pipeline compilation to see if that makes a difference, by setting "-Xset:pipelineCompilation=false" in the advanced compiler options in AJDT (in the pure text field) - but if that works it is only a workaround, switching off pipelining will greatly increase memory consumption.
I've put in guards that should stop this happening - i suspect it is us looking at a type munger to see if it provides a method in the supertype when it is not an ITD method munger and so should be ignored.
guards are in latest AJ dev build.