Skip to content

Commit

Permalink
Properly handle @JsonTypeIdResolver
Browse files Browse the repository at this point in the history
Fixes: #28912
(cherry picked from commit c3c9aaf)
  • Loading branch information
geoand authored and gsmet committed Nov 1, 2022
1 parent 26e08a6 commit e946002
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 e946002

Please sign in to comment.