Skip to content

Reflection on java.sql.Types without runtime hints #35674

@mhalbritter

Description

@mhalbritter

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

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions