-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix broken SerializationSetup, bindings insertion was reversed between HOCON and SerializationSetup. #4807
Fix broken SerializationSetup, bindings insertion was reversed between HOCON and SerializationSetup. #4807
Conversation
…n HOCON and SerializationSetup.
And this is done because the fallback serialization bindings in HOCON will always override the user-defined ones in the |
The way it is set up before, both I just split these mappings to after each of the respective HOCON mapping so that anything that came from This is how scala does it: val result = fromConfig ++ serializerDetails.map(d => d.alias -> d.serializer) serializerDetails always win. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Awesome work guys, thanks for proving I wasn't just crazy 😛 |
|
||
// Add any serializer bindings that are registered via the SerializationSetup | ||
// This has to be done here because SerializationSetup ALWAYS win. | ||
foreach (var details in _serializerDetails) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep -- I suspected it was an ordering issue -- applying the defaults after apply the user defined settings. easy peasy!
@Aaronontheweb -- do we know what version this fix will be released in? I'll be able to remove my work around once the new packages are live. Thank you! |
We just released Akka.NET v1.4.17 yesterday - this should be included in that release. @mchandschuh |
yep -- just saw the twitter announcement -- will follow for future updates, thanks @Aaronontheweb |
Closes #4761