RFR: 8347491: IllegalArgumentationException thrown by ThreadPoolExecutor doesn't have a useful message

Viktor Klang vklang at openjdk.org
Tue May 20 10:14:03 UTC 2025


On Tue, 11 Feb 2025 03:54:56 GMT, He-Pin(kerr) <duke at openjdk.org> 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.
>
> It would be much nicer if you take this one:), we are on JDK 21 and want to have this in the next LTS.

@He-Pin Just pinging you here, in case the notification from my most recent comments got lost in transit.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23050#issuecomment-2893787581


More information about the core-libs-dev mailing list