RFR: 8322920: Some executeProcess overloads are declared to throw Throwable
Stefan Karlsson
stefank at openjdk.org
Wed Jan 3 09:55:54 UTC 2024
Most functions in ProcessTools are declared to throw Exceptions, or one of its subclasses. However, there are a small number of functions that are unnecessarily declared to throw Throwable instead of Exception. I propose that we change them to also be declared to throw Exception.
This is a trivial patch to make it easier to refactor tests to use the updated functions.
Tested manually, but will wait for GHA to verify that the change is OK.
-------------
Commit messages:
- 8322920: Some executeProcess overloads are declared to throw Throwable
Changes: https://git.openjdk.org/jdk/pull/17240/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17240&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8322920
Stats: 5 lines in 1 file changed: 0 ins; 2 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/17240.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17240/head:pull/17240
PR: https://git.openjdk.org/jdk/pull/17240
More information about the core-libs-dev
mailing list