RFR: 8347491: IllegalArgumentationException thrown by ThreadPoolExecutor doesn't have a useful message [v5]
He-Pin (kerr)
duke at openjdk.org
Tue May 20 10:54:44 UTC 2025
> 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 two additional commits since the last revision:
- Update src/java.base/share/classes/java/util/concurrent/AbstractExecutorService.java
Co-authored-by: Viktor Klang <viktor.klang at oracle.com>
- Update src/java.base/share/classes/java/util/concurrent/AbstractExecutorService.java
Co-authored-by: Viktor Klang <viktor.klang at oracle.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23050/files
- new: https://git.openjdk.org/jdk/pull/23050/files/b4a10d1c..ad67bd17
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23050&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23050&range=03-04
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/23050.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23050/head:pull/23050
PR: https://git.openjdk.org/jdk/pull/23050
More information about the core-libs-dev
mailing list