Community
Participate
Working Groups
Build ID: M20071023-1652 Steps To Reproduce: 1.Create new AspectJ 2.Insert (in)valid statements 3.Try to save 4.Exception occurs! More information: java.lang.NullPointerException at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:455) at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.ajc$privMethod$org_aspectj_ajdt_internal_compiler_CompilerAdapter$org_aspectj_org_eclipse_jdt_internal_compiler_Compiler$handleInternalException(Compiler.java:1) at org.aspectj.ajdt.internal.compiler.CompilerAdapter.ajc$afterReturning$org_aspectj_ajdt_ ... oBuildJob.run(AutoBuildJob.java:235) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Compile error: NullPointerException thrown: null
I can't recreate this. Can you tell me what level of AJDT you are on? Also, when you say 'insert invalid statements', what did you insert? Does it only fail on the initial save and then work after a clean, or continue to fail every time?
*** Bug 239576 has been marked as a duplicate of this bug. ***
*** Bug 242985 has been marked as a duplicate of this bug. ***
this is happening because there is an error but we cannot find a compilation unit to record the error against. Without an example of how to recreate it, I can't fix it properly, all I can do is guard the NPE which will cause the underlying exception to come out in the console. I've committed the guard into AspectJ - next time this happens we should see a stack for the real problem and I might be able to fix it properly.
Ok my guard is in the latest AJDT for Eclipse 3.4 - if anyone can try it out and recreate this, great - let me know the new exception that gets reported.
waiting for someone to recreate with extra debug info