mirror of
https://github.com/openjdk/jdk18u.git
synced 2025-12-10 00:37:05 -06:00
Merge
This commit is contained in:
commit
814208175e
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user