Browse Source

Add missing condition in JacksonModulesRuntimeHints

Closes gh-29001
pull/28958/head
Sébastien Deleuze 2 years ago
parent
commit
5525b17f19
  1. 3
      spring-web/src/main/java/org/springframework/http/converter/json/JacksonModulesRuntimeHints.java

3
spring-web/src/main/java/org/springframework/http/converter/json/JacksonModulesRuntimeHints.java

@ -41,6 +41,7 @@ class JacksonModulesRuntimeHints implements RuntimeHintsRegistrar { @@ -41,6 +41,7 @@ class JacksonModulesRuntimeHints implements RuntimeHintsRegistrar {
private void registerType(ReflectionHints reflectionHints, String className) {
reflectionHints.registerType(TypeReference.of(className),
builder -> builder.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS));
builder -> builder.onReachableType(TypeReference.of(Jackson2ObjectMapperBuilder.class))
.withMembers(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS));
}
}

Loading…
Cancel
Save