[aspectwerkz-dev] AnnotationC task and anonymous inner class
Allan Jones <[email protected]> Sat, 9 Oct 2004 09:12:17 -0300
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
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.
--
Allan Jones
Summa Technologies do Brasil ltda.