Re: [apt-jelly-users] getting closer to the jaxb problem
Brought to you by:
stoicflame
|
From: Ryan H. <sto...@gm...> - 2007-01-29 16:44:41
|
I've looked into this a bit more, but I'm still stumped. My suspicions lea= n towards something awry in your environment, but I'm about as far as I can g= o without more information. If you can reproduce it in a test case (or give me a way to reproduce it in a test case), I'd be able to figure out what's going on. More information about your environment might also be helpful: -It's a long shot, but do you happen to have another class that is named "XmlAttribute" in either your source base or your classpath? -What's does the executable look like when executing APT? (try ant -v) Ar= e you sure the jaxb-2.0-api.jar is on the classpath when invoking APT? -Ryan On 1/28/07, Ryan Heaton <sto...@us...> wrote: > > Thanks for the report, Brian. > > It's an elusive one. I can tell you that I'm using JAXB 2.0 annotations > with APT-Jelly, and I've never seen this one. There really shouldn't be > anything special about JAXB 2.0 annotations; they're the same as any othe= r > annotation. > > I'd really like to be able to reproduce it in a test. Can you send me > more of the stack trace? > > -Ryan > > > > On 1/27/07, Brian Greene <br...@st...> wrote: > > > So this is a segment of the output from running apt when using one of > > the JAXB annotations. Just got it to appear (turned off forking the ap= t > > exec task =96 yes still in ant 1.6.x). Haven't dissected it yet, but I= 'm > > hoping it will be more meaningful to a user on the list or Ryan. > > > > > > > > symbol : class XmlAttribute > > > > [* exec*] location: class com.bob.corp.scn.model.SourceCustomer > > > > [* exec*] @XmlAttribute(name=3D"foo") > > > > [* exec*] ^ > > > > [* exec*] error: Could not create declaration for annotation type > > XmlAttribute > > > > [* exec*] Problem encountered during annotation processing; > > > > [* exec*] see stacktrace below for more information. > > > > [* exec*] * java.lang.ClassCastException*: > > com.sun.tools.apt.mirror.type.ClassTypeImpl > > > > [* exec*] at > > com.sun.tools.apt.mirror.declaration.AnnotationMirrorImpl.getAnnotation= Type > > (*AnnotationMirrorImpl.java:82 *) > > > > [*exec* ] at > > net.sf.jelly.apt.decorations.declaration.DecoratedAnnotationMirror > > .<init>(*DecoratedAnnotationMirror.java:47 *) > > > > > > > > Thanks, > > > > > > > > Brian > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Free Edition. > > Version: 7.5.432 / Virus Database: 268.17.12/654 - Release Date: > > 1/27/2007 5:02 PM > > > > > > -----------------------------------------------------------------------= -- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys - and earn cash > > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > > > > _______________________________________________ > > Apt-jelly-users mailing list > > Apt...@li... > > https://lists.sourceforge.net/lists/listinfo/apt-jelly-users > > > > > > > |