-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Use Reflection to Configure Jackson 2.12 Features #19918
Use Reflection to Configure Jackson 2.12 Features #19918
Conversation
@saragluna, @mrm9084, this should resolve the issues where method and class not found exceptions are being thrown if Jackson resolves to 2.11. @srnagar, @anuchandy, could you take a look at this change. |
...json-jackson/src/main/java/com/azure/core/serializer/json/jackson/JacksonJsonSerializer.java
Show resolved
Hide resolved
...json-jackson/src/main/java/com/azure/core/serializer/json/jackson/JacksonJsonSerializer.java
Show resolved
Hide resolved
...json-jackson/src/main/java/com/azure/core/serializer/json/jackson/JacksonJsonSerializer.java
Show resolved
Hide resolved
sdk/core/azure-core/src/main/java/com/azure/core/util/serializer/JacksonAdapter.java
Show resolved
Hide resolved
...json-jackson/src/main/java/com/azure/core/serializer/json/jackson/JacksonJsonSerializer.java
Show resolved
Hide resolved
Let's add an unreleased tag in version_client.txt for azure-core, so that spring poms can pick it up and validate the azure-core before we patch release. |
@alzimmermsft Thanks, I really appreciate this change. |
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.
Use MethodHandles when using Jackson 2.12 Features to Prevent Errors when Jackson 2.11 is Resolved
Fixes #19897
This PR updates
azure-core
andazure-core-serializer-json-jackson
to useMethodHandle
s when configuring Jackson 2.12 features. The change prevents Core from throwingMethodNotFoundException
s andClassNotFoundException
s if Jackson is resolved to 2.11.