HHH-15240 Defining a UserVersionType causes AssertionError from VersionResolution if running in JVM with -ea flag set

This commit is contained in:
Andrea Boriero 2022-05-02 14:09:39 +02:00 committed by Andrea Boriero
parent 6b02554c82
commit 6a778a321a
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class VersionResolution<E> implements BasicValue.Resolution<E> {
final BasicType<?> basicType = typeConfiguration.getBasicTypeRegistry().resolve( jtd, recommendedJdbcType );
final BasicType legacyType = typeConfiguration.getBasicTypeRegistry().getRegisteredType( jtd.getJavaType() );
assert legacyType.getJdbcType().equals( recommendedJdbcType );
assert legacyType.getJdbcType().getJdbcTypeCode() == recommendedJdbcType.getJdbcTypeCode();
return new VersionResolution<>( jtd, recommendedJdbcType, basicType, legacyType );
}