SEC-3029: Fix Compatibility with Spring 4.2.x
This commit is contained in:
@@ -375,7 +375,7 @@ public class JdbcUserDetailsManager extends JdbcDaoImpl implements UserDetailsMa
|
||||
}
|
||||
|
||||
private int findGroupId(String group) {
|
||||
return getJdbcTemplate().queryForInt(findGroupIdSql, group);
|
||||
return getJdbcTemplate().queryForObject(findGroupIdSql, Integer.class, group);
|
||||
}
|
||||
|
||||
public void setAuthenticationManager(AuthenticationManager authenticationManager) {
|
||||
|
||||
@@ -250,7 +250,8 @@ public class JdbcUserDetailsManagerTests {
|
||||
|
||||
assertEquals(
|
||||
0,
|
||||
template.queryForInt("select id from groups where group_name = 'GROUP_X'"));
|
||||
(int) template.queryForObject("select id from groups where group_name = 'GROUP_X'",
|
||||
Integer.class));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user