Community
Participate
Working Groups
(eclipse 3.1.M7, ajdt 20050525133001) Can't really provide much context. I had many errors in the aspect, removed most of the code (so that it no longer had errors) and saved. That was when I got the NPR. Then I did a full clean-build, and all errors were removed. This is pretty common for me. Seems that ajdt does not always compile everything it should, or not correctly, on file saves. Generally clean-build puts things right. ---- java.lang.NullPointerException at org.aspectj.weaver.ResolvedTypeX.addAndRecurse(ResolvedTypeX.java:258) at org.aspectj.weaver.ResolvedTypeX.addAndRecurse(ResolvedTypeX.java:259) at org.aspectj.weaver.ResolvedTypeX.getMethodsWithoutIterator(ResolvedTypeX.java:253) at org.aspectj.weaver.bcel.BcelTypeMunger.enforceDecpRule1_abstractMethodsImplemented(BcelTypeMunger.java:208) at org.aspectj.weaver.bcel.BcelTypeMunger.mungeNewParent(BcelTypeMunger.java:174) at org.aspectj.weaver.bcel.BcelTypeMunger.munge(BcelTypeMunger.java:89) at org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:345) at org.aspectj.weaver.bcel.BcelClassWeaver.weave(BcelClassWeaver.java:95) at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1377) at org.aspectj.weaver.bcel.BcelWeaver.weaveWithoutDump(BcelWeaver.java:1342) at org.aspectj.weaver.bcel.BcelWeaver.weaveAndNotify(BcelWeaver.java:1120) at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1006) at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.weave(AjCompilerAdapter.java:286) at org.aspectj.ajdt.internal.compiler.AjCompilerAdapter.afterCompiling(AjCompilerAdapter.java:165) at org.aspectj.ajdt.internal.compiler.CompilerAdapter.ajc$afterReturning$org_aspectj_ajdt_internal_compiler_CompilerAdapter$2$f9cc9ca0(CompilerAdapter.aj:70) at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:368) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:727) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:229) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.incrementalBuild(AjBuildManager.java:147) at org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:116) at org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:191)
Passing over to AspectJ
try and look at for M3 - might be tricky as its inc compile related. Hopefully the changes to the compile loop we are looking at should enable us to resolve this.
M3 is fast becoming 'generics only' fixes so we can get it finished. inc compilation will come later.
yuck ... all the generics changes for M3 (and type renaming) have moved this error around a lot. Does it still happen for you with the latest AJDT? if so, is there anyway you can supply me with an up to date stack trace? thanks.
We believe these issues are fixed, but since we can't reproduce please reopen if you encounter this again with the latest builds. Thanks, Adrian.
Thanks, I'll keep an eye out.