From b9e100c61efab7762ecd9b3e33bfb703862bd797 Mon Sep 17 00:00:00 2001 From: Sergey Bylokhov Date: Fri, 20 May 2022 06:25:14 +0000 Subject: [PATCH 1/2] 8285523: Improve test java/io/FileOutputStream/OpenNUL.java Backport-of: f42631e354d4abf7994abd92aa5def6b2ceeab3a --- test/jdk/java/io/FileOutputStream/OpenNUL.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/jdk/java/io/FileOutputStream/OpenNUL.java b/test/jdk/java/io/FileOutputStream/OpenNUL.java index dc14db070a4..53a84504e13 100644 --- a/test/jdk/java/io/FileOutputStream/OpenNUL.java +++ b/test/jdk/java/io/FileOutputStream/OpenNUL.java @@ -26,7 +26,9 @@ * @bug 8285445 * @requires (os.family == "windows") * @summary Verify behavior of opening "NUL:" with ADS enabled and disabled. + * @run main/othervm OpenNUL * @run main/othervm -Djdk.io.File.enableADS OpenNUL + * @run main/othervm -Djdk.io.File.enableADS=FalsE OpenNUL * @run main/othervm -Djdk.io.File.enableADS=true OpenNUL */ @@ -36,7 +38,7 @@ import java.io.IOException; public class OpenNUL { public static void main(String args[]) throws IOException { - String enableADS = System.getProperty("jdk.io.File.enableADS"); + String enableADS = System.getProperty("jdk.io.File.enableADS", "true"); boolean fails = enableADS.equalsIgnoreCase(Boolean.FALSE.toString()); FileOutputStream fos; From c57549624fa0a1b65212842fa88872331a90b849 Mon Sep 17 00:00:00 2001 From: Adam Farley Date: Mon, 23 May 2022 21:04:51 +0000 Subject: [PATCH 2/2] 8286601: Mac Aarch: Excessive warnings to be ignored for build jdk Reviewed-by: andrew Backport-of: 40f43c6b1ffc88d55dd3223f5d0259ae73cf0356 --- make/autoconf/flags-cflags.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/make/autoconf/flags-cflags.m4 b/make/autoconf/flags-cflags.m4 index 76724235ec4..25f79c4bc7b 100644 --- a/make/autoconf/flags-cflags.m4 +++ b/make/autoconf/flags-cflags.m4 @@ -159,6 +159,7 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS], clang) DISABLE_WARNING_PREFIX="-Wno-" + BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" CFLAGS_WARNINGS_ARE_ERRORS="-Werror" # Additional warnings that are not activated by -Wall and -Wextra