Skip to content
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 bean context classloader for Jackson #10121

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Use bean context classloader for Jackson #10121

merged 2 commits into from
Nov 16, 2023

Conversation

dstepanov
Copy link
Contributor

Compiled tests fail for Jackson subtypes

@@ -143,6 +147,10 @@ public ObjectMapper objectMapper(@Nullable JacksonConfiguration jacksonConfigura
objectMapper.findAndRegisterModules();
}
objectMapper.registerModules(jacksonModules);
if (beanContext != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some cases where ObjectMapperFactory is used without the bean context

@dstepanov
Copy link
Contributor Author

@yawkat Any idea why the tests are failing?

@yawkat
Copy link
Member

yawkat commented Nov 15, 2023

looks like flakey tests, incl #10104

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@sdelamo sdelamo merged commit 2b87525 into 4.2.x Nov 16, 2023
15 checks passed
@sdelamo sdelamo deleted the jacksoncl branch November 16, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants