Re: AspectWerkzPreProcessor throwing exception on null class name

"Alex" <alex-he/e8N7AIe/[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
Good point Steve
I'll had that in 0.10.RC3. Hope to ship it next week.
(Note: defining a null named class is a deprecated method in
java.lang.ClassLoader - but I understand you cannot change this)

BTW: NetBeans is an IDE right ? Could you give some more details on what you
do with "integrating NetBeans and AW" ? Have an AW IDE extension or use AW
to add Aspects in the IDE for dev. purpose etc ?

Alex

----- Original Message ----- 
From: "Steve Caswell" <scaswell-rjMgWMNrobOBUy7/[email protected]>
To: <aspectwerkz-devel-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org>
Sent: Friday, May 28, 2004 3:38 AM
Subject: [aspectwerkz-devel] AspectWerkzPreProcessor throwing exception on
null class name


> 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.
>
>
> _______________________________________________
> aspectwerkz-devel mailing list
> aspectwerkz-devel-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
> http://lists.codehaus.org/mailman/listinfo/aspectwerkz-devel
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.