RFR: 8356107: [java.lang] Use @requires tag instead of exiting based on os.name or separatorChar property
Brian Burkhalter
bpb at openjdk.org
Fri May 9 23:45:51 UTC 2025
On Fri, 9 May 2025 23:23:27 GMT, Brent Christian <bchristi at openjdk.org> wrote:
> For `java.lang` tests, use the `@requires` facility in place of checking the `os.name` system property or `File.separatorChar`.
>
> Automated test results are omitted as expected.
test/jdk/java/lang/RuntimeTests/exec/Space.java line 42:
> 40: throw new RuntimeException("Extra space in command.");
> 41: } catch (IOException e) {
> 42: // not Win NT - cmd doesnt exist
As long as you're there: `doesnt` -> `doesn't`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25163#discussion_r2082640179
More information about the core-libs-dev
mailing list