-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML module not registered correctly when setting a custom SerializerFactory
#678
Comments
I think that overriding of It might help if I understood your use case better: why are you overriding |
See my comment in #676 (comment). At the moment I'm using a custom |
Ah ok. Yes, we should make it possible to configure Without remembering full details, I suspect But I guess I am not sure which aspects of |
Just to clarify the issue: the
When setting the
Thanks. I'll see if I find a moment, but can't make any promise either. :) |
Ah. Yes, flow of configuration gets bit hairy, since And yes, pr would be great but we all have limited time so I take whatever I can get. :) |
I did #680 and I think it might be the best small thing I can do; will merge. |
I'm using a custom
SerializerFactory
as follows.I noticed that in the constructor of
XmlMapper
, the defaultXML_MODULE
is registered, which also configures theSerializerFactory
. Since I'm overriding it after constructing, this configuration is lost, resulting in different behaviour, which is very confusing.I currently don't see any way for registering my custom
SerializerFactory
before theXML_MODULE
is registered. Is this intended? It seems error-prone.My current workaround:
The text was updated successfully, but these errors were encountered: