Skip to content

Commit e502541

Browse files
Skelotronjhoeller
authored andcommitted
Fix transaction timeout value overflow
Issue: SPR-16316 (cherry picked from commit b9e03cb)
1 parent d53ede9 commit e502541

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
@@ -78,7 +78,7 @@ public boolean isRollbackOnly() {
7878
* @param seconds number of seconds until expiration
7979
*/
8080
public void setTimeoutInSeconds(int seconds) {
81-
setTimeoutInMillis(seconds * 1000);
81+
setTimeoutInMillis(seconds * 1000L);
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)