Skip to content

Commit

Permalink
Merge pull request #28937 from geoand/#28912
Browse files Browse the repository at this point in the history
Properly handle @JsonTypeIdResolver
  • Loading branch information
gsmet committed Oct 31, 2022
2 parents 64cdb4a + c3c9aaf commit 049940c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ void register(
if (value != null) {
// Add the type-id-resolver class
reflectiveClass.produce(new ReflectiveClassBuildItem(true, true, value.asClass().name().toString()));
// Add the whole hierarchy of the annotated class
addReflectiveHierarchyClass(resolverInstance.target().asClass().name(), reflectiveHierarchyClass);
if (resolverInstance.target().kind() == CLASS) {
// Add the whole hierarchy of the annotated class
addReflectiveHierarchyClass(resolverInstance.target().asClass().name(), reflectiveHierarchyClass);
}
}
}

Expand Down

0 comments on commit 049940c

Please sign in to comment.