Affects: 5.2.8.RELEASE
There is a small bug in the class org.springframework.scheduling.concurrent.ExecutorConfigurationSupport
in the method :
public void setAwaitTerminationSeconds(int awaitTerminationSeconds) {
this.awaitTerminationMillis = awaitTerminationSeconds * 1000;
}
When the input parameter awaitTerminationSeconds is bigger then Integer.MAX_VALUE/1000
the value asigned to long this.awaitTerminationMillis can even be negative !
I recommend changing the 1000 to the 1000l long version as below
public void setAwaitTerminationSeconds(int awaitTerminationSeconds) {
this.awaitTerminationMillis = awaitTerminationSeconds * 1000l;
}
Affects: 5.2.8.RELEASE
There is a small bug in the class
org.springframework.scheduling.concurrent.ExecutorConfigurationSupportin the method :
When the input parameter
awaitTerminationSecondsis bigger thenInteger.MAX_VALUE/1000the value asigned to
long this.awaitTerminationMilliscan even be negative !I recommend changing the
1000to the1000llong version as below