HHH-17916 Check type is resolved before building generic property

This commit is contained in:
Marco Belladelli 2024-04-04 15:46:57 +02:00 committed by Steve Ebersole
parent ca28afddaf
commit 0fa97f94b2
1 changed files with 1 additions and 2 deletions

View File

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