diff --git a/test/jdk/java/net/Inet4Address/TestToNumericFormatHosts b/test/jdk/java/net/Inet4Address/TestToNumericFormatHosts deleted file mode 100644 index 8b137891791..00000000000 --- a/test/jdk/java/net/Inet4Address/TestToNumericFormatHosts +++ /dev/null @@ -1 +0,0 @@ - diff --git a/test/jdk/java/net/Inet4Address/textToNumericFormat.java b/test/jdk/java/net/Inet4Address/textToNumericFormat.java index 7d75bc9f534..f1a6b67d442 100644 --- a/test/jdk/java/net/Inet4Address/textToNumericFormat.java +++ b/test/jdk/java/net/Inet4Address/textToNumericFormat.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,7 +25,7 @@ * @test * @bug 4749938 8087190 * @summary Bug in the parsing IPv4 literal addresses - * @run main/othervm textToNumericFormat + * @run main/othervm -Djdk.net.hosts.file=HostFileDoesNotExist textToNumericFormat */ /** @@ -66,11 +66,10 @@ public class textToNumericFormat { "1..1.1", "1.1.1.", "..." }; - String hostsFileName = System.getProperty("test.src", ".") + "/TestToNumericFormatHosts"; - System.setProperty("jdk.net.hosts.file", hostsFileName); for (int i=0; i