AspectWerkzPreProcessor throwing exception on null class name
"Steve Caswell" <scaswell-rjMgWMNrobOBUy7/[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm integrating AspectWerkz (0.10.RC2) with NetBeans 3.6, which is working fine with one exception. For some reason that I have not been able to track down, there are several attempts to load classes with a null class name. These get passed to org.codehaus.aspectwerkz.hook.impl.ClassPreProcessorHelper.defineClass0Pre, which then calls org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor.preProcess. Since there is no check for name being null in preProcess, it throws an NPE. There doesn't appear to be any problem with this, as the application continues to run fine. However, defineClass0Pre catches the NPE and writes the stack trace. This happens about 20 times, so starting up the application is slowed considerably. Would the development team consider a modification that avoids calling preProcess if the name passed to defineClass0Pre is null? I have made this hack in my local source and it seems to work ok. I'll be happy to post the modification.