Skip to content

spring-jdbc-3.2.6.RELEASE doesn't support JDK 5. [SPR-11313] #15937

Closed

Description

@spring-projects-issues

Soungmin Joo opened SPR-11313 and commented

I'm not sure this is really a bug. I thought that spring-jdbc-3.2.6.RELEASE would support JDK 5 because spring-jdbc-3.2.5.RELEASE did so. \ But because StatementCreatorUtils has changed to use Collections.newSetFromMap() method (which is supported from JDK 6) \ when 3.2.5.RELEASE has transfered to 3.2.6.RELEASE, it seems that JdbcTemplate cannot be used with JDK 6 together on spring-jdbc-3.2.6.RELEASE. \Is this really what was supposed to be? \
\

// spring-jdbc-3.2.5.RELEASE.jar
public abstract class StatementCreatorUtils {
    private static final Log logger = LogFactory.getLog(StatementCreatorUtils.class);
    private static Map<Class, Integer> javaTypeToSqlTypeMap = new HashMap<Class, Integer>(32);

// spring-jdbc-3.2.5.RELEASE.jar
public abstract class StatementCreatorUtils {
    private static final Log logger = LogFactory.getLog(StatementCreatorUtils.class);
    static final Set<String> driversWithNoSupportForGetParameterType =
	Collections.newSetFromMap(new ConcurrentHashMap<String, Boolean>(1));

Affects: 3.2.6

Issue Links:

Referenced from: commits 62fd12c

Activity

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

    @spring-projects-issues
    CollaboratorAuthor

    Stéphane Nicoll commented

    See #439

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

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    This seems like an accidental over-eager backport from the 4.0 branch: We did want to backport #15726 but not Java 6 related StatementCreatorUtils changes from 4.0 there. I'll fix this for 3.2.7.

    Stephane, that newSetFromMap change is certainly the immediate cause. I'll double-check the actual backport commits for further accidental effects.

    Juergen

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

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    As of 3.2.7, StatementCreatorUtils uses a ConcurrentHashMap as a fake Set now (with Boolean values), like we do in other places in the 3.2.x codebase. So Java 5 compatibility is restored, preserving the performance characteristics.

    Juergen

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

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Feel free to give this a try against the current 3.2.7 snapshot: See http://projects.spring.io/spring-framework/ for Maven coordinates. Would be great to know whether it works for you now...

    Juergen

  5. spring-projects-issues commented on Jan 15, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Soungmin Joo commented

    Thank you for the quick response. And I have tried '3.2.7.BUILD-SNAPSHOT' version and I found that it works as usual. \
    And it would be great if I could know when the '3.2.7.RELEASE' version would be distributed. \
    Thank you.

  6. spring-projects-issues commented on Jan 16, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    You can always have a look at the specific release details page in JIRA, or at https://jira.springsource.org/browse/SPR#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel for an overview of planned dates. We usually list up-to-date targets there.

    Anyway, for Spring Framework 3.2.7, it's January 23rd - next Thursday.

    Juergen

  7. spring-projects-issues commented on Jan 16, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Soungmin Joo commented

    Thanks again! :)

  8. added
    type: bug
    in: data
    on Jan 11, 2019
  9. 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