users@jaxb.java.net

jaxb2-basics-annotate produces class that won't compile

From: Vilaverde, David <david.vilaverde_at_yale.edu>
Date: Wed, 11 May 2011 08:46:10 -0400

Hi,

I am using the jaxb2-basics-annotate plugin and I'm seeing some strange behavior. I'm trying to add @XmlRootElement to a Class and the plugin is placing that annotation on the Class and a getter for a field. But since the @XmlRootElement annotation can't be added to methods the Class won't compile.

I've attached an example project the demonstrates the issue. Is this something that I've done wrong in the XJC Binding or is this a defect with the plugin.

Thanks

David Vilaverde
ITS, Yale University