Skip to content

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

Closed
@spring-projects-issues

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

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