Bug 242328 - An exception occurs when I tried to work with AspectJ. As a result changes cannot be saved 'til restart.
Summary: An exception occurs when I tried to work with AspectJ. As a result changes ca...
Status: RESOLVED WORKSFORME
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 239576 242985 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-29 02:23 EDT by icon CLA
Modified: 2008-09-30 16:17 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description icon CLA 2008-07-29 02:23:48 EDT
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
Comment 1 Andrew Clement CLA 2008-07-29 12:05:16 EDT
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?
Comment 2 Andrew Clement CLA 2008-07-29 12:14:01 EDT
*** Bug 239576 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Clement CLA 2008-08-03 12:24:21 EDT
*** Bug 242985 has been marked as a duplicate of this bug. ***
Comment 4 Andrew Clement CLA 2008-08-18 13:02:36 EDT
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.
Comment 5 Andrew Clement CLA 2008-08-22 18:29:40 EDT
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.
Comment 6 Andrew Clement CLA 2008-09-30 16:17:58 EDT
waiting for someone to recreate with extra debug info