Add missing condition in JacksonModulesRuntimeHints

Closes gh-29001
This commit is contained in:
Sébastien Deleuze
2022-08-23 12:11:42 +02:00
parent 56551032e3
commit 5525b17f19

View File

@@ -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));
}
}