Closed
Description
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:
- StatementCreatorUtils introduces java 1.6 dependency [SPR-11349] #15974 StatementCreatorUtils introduces java 1.6 dependency ("is duplicated by")
- performancedrop due to repeated JDBC 3.0 getParameterType calls in setNull in StatementCreatorUtils [SPR-11100] #15726 performancedrop due to repeated JDBC 3.0 getParameterType calls in setNull in StatementCreatorUtils
- Downgrade accidental use of Java 1.7 APIs [SPR-11319] #15943 Downgrade accidental use of Java 1.7 APIs
- Downgrade accidental use of Java 1.6 APIs [SPR-11321] #15945 Downgrade accidental use of Java 1.6 APIs
Referenced from: commits 62fd12c