mirror of
https://github.com/openjdk/jdk18u.git
synced 2025-12-12 04:52:54 -06:00
Merge
This commit is contained in:
commit
814208175e
@ -159,6 +159,7 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
|
|||||||
|
|
||||||
clang)
|
clang)
|
||||||
DISABLE_WARNING_PREFIX="-Wno-"
|
DISABLE_WARNING_PREFIX="-Wno-"
|
||||||
|
BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-"
|
||||||
CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
|
CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
|
||||||
|
|
||||||
# Additional warnings that are not activated by -Wall and -Wextra
|
# Additional warnings that are not activated by -Wall and -Wextra
|
||||||
|
|||||||
@ -26,7 +26,9 @@
|
|||||||
* @bug 8285445
|
* @bug 8285445
|
||||||
* @requires (os.family == "windows")
|
* @requires (os.family == "windows")
|
||||||
* @summary Verify behavior of opening "NUL:" with ADS enabled and disabled.
|
* @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 OpenNUL
|
||||||
|
* @run main/othervm -Djdk.io.File.enableADS=FalsE OpenNUL
|
||||||
* @run main/othervm -Djdk.io.File.enableADS=true OpenNUL
|
* @run main/othervm -Djdk.io.File.enableADS=true OpenNUL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -36,7 +38,7 @@ import java.io.IOException;
|
|||||||
|
|
||||||
public class OpenNUL {
|
public class OpenNUL {
|
||||||
public static void main(String args[]) throws IOException {
|
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());
|
boolean fails = enableADS.equalsIgnoreCase(Boolean.FALSE.toString());
|
||||||
|
|
||||||
FileOutputStream fos;
|
FileOutputStream fos;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user