Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-11313

spring-jdbc-3.2.6.RELEASE doesn't support JDK 5.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 3.2.6
    • Fix Version/s: 3.2.7
    • Component/s: Data:JDBC
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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));
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              letters4u Soungmin Joo
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 37 weeks, 1 day ago