Re: [aspectwerkz-dev] AnnotationC task and anonymous inner class
the_mindstorm <[email protected]> Sat, 09 Oct 2004 15:17:46 +0300
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
Quote [Allan Jones]: > one day, I wrote: > > "One minor bug. > When we use "-dest" in AnnotationC, Anonymous Inner Classes are not > copied to dest directory. When we run our classes, > java.lang.NoClassDefFoundError occurs" > > and Alexandre Vasseur said: > > "Ok the AnnotationC issue cannot be solved in the framework. > > Anonymous inner classes are not parsed by Qdox that is used to parse > the source code (note: cannot handle annotation on anonymous inner > class neither by the way). Thus the anonymous inner class is not > analyzed by AnnotationC. > > So when using -dest flag, add the following just after the call to > AnnotationC in your Ant script: > <copy todir="classes/annotated" overwrite="false"> > <fileset dir="classes/regular"/> > </copy>" > > > Now that you´re doing an ant task, the task could resolve this problem > by copying the missing classes to the dest dir. > I guess you are right (my 2c). I am gonna fix this in the AnnotationCTask (available in the CVS HEAD). ./the_mindstorm