Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.21.1
-
None
-
Novice
Description
From JaxbDataFormat.unmarshal:
... XMLStreamReader xmlReader; if (needFiltering(exchange)) { xmlReader = typeConverter.convertTo(XMLStreamReader.class, createNonXmlFilterReader(exchange, stream)); } else { xmlReader = typeConverter.convertTo(XMLStreamReader.class, stream); } ...
The passed Exchange is not used during the convertTo invocation. Any other invocation in the JaxbDataFormat class passes the given Exchange object.
Passing the Exchange object gives a chance to the type converter to configure itself before converting.