HHH-16784 Always resolve generic interface classes to Object type

This commit is contained in:
Marco Belladelli 2023-06-16 11:48:42 +02:00
parent 2f69b704d1
commit e272e012d2
No known key found for this signature in database
GPG Key ID: D1D0C3030AE3AA35
1 changed files with 1 additions and 2 deletions

View File

@ -227,8 +227,7 @@ public class TypeDefinition implements Serializable {
return createBasicTypeResolution( legacyType, typeImplementorClass, indicators, typeConfiguration );
}
if ( indicators.getEnumeratedType() != null ) {
assert typeImplementorClass.isInterface();
if ( typeImplementorClass.isInterface() ) {
return createBasicTypeResolution( new JavaObjectType(), typeImplementorClass, indicators, typeConfiguration );
}