Re: [aspectwerkz-dev] AnnotationC task and anonymous inner class
Alexandre Vasseur <[email protected]> Sat, 9 Oct 2004 15:53:58 +0200
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
So to make it clear, when the -dest (optional) option is used, AnnotationC does not "moves" the annonymous inner class since Qdox does not give us access to them. What you need to do in such a case is probably invoke the Ant copy task with override=false from the AnnotationCTask, with no filtering. (may be you need to invoke it several time since we support several src dir now) thanks if you can update the task Alex On Sat, 09 Oct 2004 15:17:46 +0300, the_mindstorm <[email protected]> wrote: > 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 >