Integrated: 8355443: [java.io] Use @requires tag instead of exiting based on File.separatorChar value
Brian Burkhalter
bpb at openjdk.org
Fri May 2 17:02:53 UTC 2025
On Thu, 24 Apr 2025 00:33:20 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> For tests of the `java.io` package, instead of doing this
>
> public static void main(String[] args) throws Exception {
> if (File.separatorChar != '\') {
> /* This test is only valid on win32 systems */
> return;
> }
>
> do this
>
> @requires (os.family == "windows")
This pull request has now been integrated.
Changeset: 4826a91e
Author: Brian Burkhalter <bpb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4826a91e7a729999343f450ab7ec4621cc418550
Stats: 61 lines in 10 files changed: 10 ins; 35 del; 16 mod
8355443: [java.io] Use @requires tag instead of exiting based on File.separatorChar value
Reviewed-by: naoto, vyazici
-------------
PR: https://git.openjdk.org/jdk/pull/24838
More information about the core-libs-dev
mailing list