Skip to content

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

Closed

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:

Activity

  1. spring-projects-issues commented on Jan 22, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    This has been fixed for the latest 3.2.7 snapshots already. Feel free to give it a try... (See the Maven coordinates at http://projects.spring.io/spring-framework/)

    Juergen

    P.S.: We've been starting to use Animal Sniffer ourselves now, not least of it all due to this accidental breakage. Surprisingly we had hardly any breakages before, despite no specific tool support for detecting them.

  2. spring-projects-issues commented on Jan 22, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Out of curiosity: Are you, by any chance, using WebSphere 6.1 on JDK 5?

  3. spring-projects-issues commented on Jan 22, 2014

    @spring-projects-issues
    CollaboratorAuthor

    daniel carter commented

    Haha, websphere, no thankfully. I remember being stuck on java 1.3 for years after 1.5 came out because of websphere... Our deployment target is a shared tomcat 6 instance. Shared so it's a big effort to get all apps upgraded and tested at once, and not something i have any influence over unfortunately.

    Have tested with 3.2.7-SNAP locally and my integration tests are passing again thanks. I'll have to stick with 3.2.5 until 3.2.7 is released though. Any ETA on that?

  4. spring-projects-issues commented on Jan 23, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Stéphane Nicoll commented

    Daniel, next Monday. Otherwise you can have a look to the versions panel of the project where we put the dates for the upcoming releases:
    https://jira.springsource.org/browse/SPR#selectedTab=com.atlassian.jira.plugin.system.project%3Aversions-panel

  5. added
    type: bug
    in: data
    on Jan 11, 2019
  6. added this to the 3.2.7 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: datatype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions