Community
Participate
Working Groups
If you specify an XmlJavaTypeAdapter on a package-info.java as the DEFAULT, but do not fully qualify it, you don't get a validation error. If you instead specify type=javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter.DEFAULT.class you get the JAXB validation error: "The type must be specified for an XML Java type adapter on a package" No validation error in this case: @XmlJavaTypeAdapter(value=com.sun.xml.bind.AnyTypeAdapter.class, type=XmlJavaTypeAdapter.DEFAULT.class) package model; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
No validation error is given for this case either: @XmlAttribute @XmlJavaTypeAdapter(value=MyAdapter.class) public List foo;
The second use case is as designed. Metro will fail in this case, but MOXy will not. It's more a case of us not having enough information to give a good error.
Committed for 3.2 M7.