org.springframework.jdbc.support.JdbcUtils has this in it:
static {
try {
for (Field field : Types.class.getFields()) {
typeNames.put((Integer) field.get(null), field.getName());
}
}
catch (Exception ex) {
throw new IllegalStateException("Failed to resolve JDBC Types constants", ex);
}
}
But there are no runtime hints for it. This breaks the Batch smoke tests: spring-projects/spring-aot-smoke-tests#292