Skip to content

StatementCreatorUtils introduces java 1.6 dependency [SPR-11349] #15974

@spring-projects-issues

Description

@spring-projects-issues

daniel carter opened SPR-11349 and commented

The 3.2 series minimum requirement is java 1.5 but StatementCreatorUtils makes a call to Collections.newSetFromMap() which is since 1.6.

This is preventing us from upgrading from 3.2.5 to get the #15726 fix.

This issue manifests as java.lang.NoClassDefFoundError
at org.springframework.jdbc.core.ArgumentPreparedStatementSetter.cleanupParameters(ArgumentPreparedStatementSetter.java:70)
at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:656)

P.S. we use animal sniffer to catch accidental usage of newer API methods in our builds, very handy.


Affects: 3.2.6

Issue Links:

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