HHH-15240 Defining a UserVersionType causes AssertionError from VersionResolution if running in JVM with -ea flag set
This commit is contained in:
parent
6b02554c82
commit
6a778a321a
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue