Affects Version/s: 2.2.7
Fix Version/s: None
JAXB reads annotations directly from scanned classes by calling directly java.lang.Class.getAnnotation(Class<A>) This means that Java classes must be annotated directly by e.g. @XmlRootElement, @XmlType etc.
JAXB should read also meta annotations of scanned class annotations i.e. let's take the following example:
and then a Java bean:
In such case if you execute this:
you will get an error:
IMHO it's a bug. JAXB should support annotations annotated with javax.xml.bind annotations. I will send you a patch for class annotations but it should be also the case for fields and methods, I think.