-
Bug
-
Resolution: Done
-
Major
-
2.3.3.Final
-
None
-
None
-
Compatibility/Configuration
-
Workaround Exists
-
In the JAXBXmlTypeProvider, the readFrom() method doesn't invoke the decorateUnmarshaller() method, that cause the @XmlType classes which have been generated by XJC can't use "Decorator" feature for Unmarshaller.
------------------------------------------------------
Below is source code pasted from JAXBXmlTypeProvider:
public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException
{
try
{
JAXBContext jaxb = findJAXBContext(type, annotations, mediaType, true);
Unmarshaller unmarshaller = jaxb.createUnmarshaller();
if (suppressExpandEntityExpansion())
Object obj = unmarshaller.unmarshal(entityStream);
if (obj instanceof JAXBElement)
else
{ return obj; } }
catch (JAXBException e)
}