On Mon, 24 Feb 2025 16:21:33 GMT, He-Pin(kerr) <[email protected]> wrote:
>> Motivation:
>> When a user passes a wrong parameter, the current implementation throws an
>> IllegalArgumentException with an error message `null`, which is not helpful.
>>
>> Modification:
>> Add detail error messages.
>>
>> Result:
>> Helpful messages.
>
> He-Pin(kerr) has updated the pull request incrementally with one additional
> commit since the last revision:
>
> chore: update tests
test/jdk/java/util/concurrent/tck/ThreadPoolExecutorTest.java line 1158:
> 1156: shouldThrow();
> 1157: } catch (NullPointerException success) {
> 1158: Assert.assertEquals("threadFactory", success.getMessage());
This seems wrong.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23050#discussion_r1974318175