From 0fa97f94b223a3387692a67c3aec8ac73951b544 Mon Sep 17 00:00:00 2001 From: Marco Belladelli Date: Thu, 4 Apr 2024 15:46:57 +0200 Subject: [PATCH] HHH-17916 Check type is resolved before building generic property --- .../org/hibernate/boot/model/internal/ClassPropertyHolder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/ClassPropertyHolder.java b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/ClassPropertyHolder.java index cd224a9e16..c9cf85fe27 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/ClassPropertyHolder.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/ClassPropertyHolder.java @@ -291,8 +291,7 @@ public class ClassPropertyHolder extends AbstractPropertyHolder { return; } - final TypeDetails.Kind kind = memberDetails.getType().getTypeKind(); - if ( kind != TypeDetails.Kind.TYPE_VARIABLE && kind != TypeDetails.Kind.PARAMETERIZED_TYPE ) { + if ( memberDetails.getType().isResolved() ) { // Avoid copying when the property doesn't depend on a type variable propertyConsumer.accept( prop ); return;