added synchronization to compile method (SPR-6001)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1843 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
2103fde78f
commit
72b07ace33
|
|
@ -249,7 +249,7 @@ public abstract class AbstractJdbcCall {
|
|||
* @throws org.springframework.dao.InvalidDataAccessApiUsageException if the object hasn't
|
||||
* been correctly initialized, for example if no DataSource has been provided
|
||||
*/
|
||||
public final void compile() throws InvalidDataAccessApiUsageException {
|
||||
public synchronized final void compile() throws InvalidDataAccessApiUsageException {
|
||||
if (!isCompiled()) {
|
||||
if (getProcedureName() == null) {
|
||||
throw new InvalidDataAccessApiUsageException("Procedure or Function name is required");
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ public abstract class AbstractJdbcInsert {
|
|||
* @throws org.springframework.dao.InvalidDataAccessApiUsageException if the object hasn't
|
||||
* been correctly initialized, for example if no DataSource has been provided
|
||||
*/
|
||||
public final void compile() throws InvalidDataAccessApiUsageException {
|
||||
public synchronized final void compile() throws InvalidDataAccessApiUsageException {
|
||||
if (!isCompiled()) {
|
||||
if (getTableName() == null) {
|
||||
throw new InvalidDataAccessApiUsageException("Table name is required");
|
||||
|
|
|
|||
Loading…
Reference in New Issue