Description
In the followin line an exception is thrown when timeout is > 0xfffffffe
|
if (dueTm > MaxSupportedTimeout) |
|
throw new ArgumentOutOfRangeException(nameof(dueTime), SR.ArgumentOutOfRange_TimeoutTooLarge); |
|
internal const uint MaxSupportedTimeout = 0xfffffffe; |
The exception message is:
|
<data name="ArgumentOutOfRange_TimeoutTooLarge" xml:space="preserve"> |
|
<value>Time-out interval must be less than 2^32-2.</value> |
|
</data> |
Reproduction Steps
Expected behavior
Message should be "less than or equal to 2^32-2" or "less than 2^32-1"
Actual behavior
Wrong exception message
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Description
In the followin line an exception is thrown when timeout is > 0xfffffffe
runtime/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs
Lines 837 to 838 in 57bfe47
runtime/src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs
Line 803 in 57bfe47
The exception message is:
runtime/src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
Lines 1856 to 1858 in 00c1692
Reproduction Steps
Expected behavior
Message should be "less than or equal to 2^32-2" or "less than 2^32-1"
Actual behavior
Wrong exception message
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response