[jOOQ/jOOQ#16425] [jOOQ/jOOQ#16090] Restore eager logging with CAST

When calling Field.cast(UserType.class) or Field.coerce(UserType.class), we must eager log the warning as previously
This commit is contained in:
Lukas Eder 2024-03-11 12:26:17 +01:00
parent 3f2062a8fa
commit 0116bd8a11

View File

@ -296,7 +296,7 @@ implements
@Override
public final <Z> Field<Z> cast(Class<Z> type) {
return cast(DefaultDataType.getDataType(null, type));
return cast(DefaultDataType.check(DefaultDataType.getDataType(null, type)));
}
// ------------------------------------------------------------------------
@ -315,7 +315,7 @@ implements
@Override
public final <Z> Field<Z> coerce(Class<Z> type) {
return coerce(DefaultDataType.getDataType(null, type));
return coerce(DefaultDataType.check(DefaultDataType.getDataType(null, type)));
}
// ------------------------------------------------------------------------