Skip to content

Commit b9e03cb

Browse files
Skelotronjhoeller
authored andcommitted
SPR-16316 — fix transaction timeout value overflow
1 parent 4a57e26 commit b9e03cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-tx/src/main/java/org/springframework/transaction/support/ResourceHolderSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public boolean isRollbackOnly() {
9191
* @param seconds number of seconds until expiration
9292
*/
9393
public void setTimeoutInSeconds(int seconds) {
94-
setTimeoutInMillis(seconds * 1000);
94+
setTimeoutInMillis(seconds * 1000L);
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)