Hello!
I'm using the JAX-B encoder and decoder. To do this, I initialize a JAXBContextFactory with properties using the "withProperty" method of its builder.
During the JAXBEncoder marshalling process, the properties defined in the JAXBContextFactory are correctly applied, and the marshalling process is successful.
However, during the JAXBDecoder unmarshalling process, I noticed that the same properties are not applied to the unmarshaller, causing a problem with the unmarshalling process.
I would like it to be possible to apply the properties to the unmarshaller as well. It would probably be more appropriate for the properties to be applied nominally to the marshaller and unmarshaller.
References:
The builder's method JAXBContextFactory.withProperty:
|
public Builder withProperty(String key, Object value) { |
JAXBContextFactory creating a marshaller and using method setMarshallerProperties:
|
setMarshallerProperties(marshaller); |
JAXBContextFactory creating a unmarshaller (that doesn't apply any property)
|
public Unmarshaller createUnmarshaller(Class<?> clazz) throws JAXBException { |
Projects:
feign/tree/master/jaxb-jakarta
feign/tree/master/jaxb
Classes:
feign.jaxb.JAXBContextFactory
feign.jaxb.JAXBDecoder
feign.jaxb.JAXBEncoder
Hello!
I'm using the JAX-B encoder and decoder. To do this, I initialize a JAXBContextFactory with properties using the "withProperty" method of its builder.
During the JAXBEncoder marshalling process, the properties defined in the JAXBContextFactory are correctly applied, and the marshalling process is successful.
However, during the JAXBDecoder unmarshalling process, I noticed that the same properties are not applied to the unmarshaller, causing a problem with the unmarshalling process.
I would like it to be possible to apply the properties to the unmarshaller as well. It would probably be more appropriate for the properties to be applied nominally to the marshaller and unmarshaller.
References:
The builder's method
JAXBContextFactory.withProperty:feign/jaxb/src/main/java/feign/jaxb/JAXBContextFactory.java
Line 177 in afb1f76
JAXBContextFactorycreating a marshaller and using methodsetMarshallerProperties:feign/jaxb/src/main/java/feign/jaxb/JAXBContextFactory.java
Line 79 in afb1f76
JAXBContextFactorycreating a unmarshaller (that doesn't apply any property)feign/jaxb/src/main/java/feign/jaxb/JAXBContextFactory.java
Line 67 in afb1f76
Projects:
feign/tree/master/jaxb-jakarta
feign/tree/master/jaxb
Classes:
feign.jaxb.JAXBContextFactoryfeign.jaxb.JAXBDecoderfeign.jaxb.JAXBEncoder