diff options
Diffstat (limited to 'test/java/net/NetworkInterface/IPv4Only.java')
-rw-r--r-- | test/java/net/NetworkInterface/IPv4Only.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/java/net/NetworkInterface/IPv4Only.java b/test/java/net/NetworkInterface/IPv4Only.java index 4d0bc3d404..76bf0b867e 100644 --- a/test/java/net/NetworkInterface/IPv4Only.java +++ b/test/java/net/NetworkInterface/IPv4Only.java @@ -22,8 +22,8 @@ */ /* @test - * @bug 6964714 - * @run main/othervm IPv4Only + * @bug 6964714 8226928 + * @run main/othervm -Djava.net.preferIPv4Stack=true IPv4Only * @summary Test the networkinterface listing with java.net.preferIPv4Stack=true. */ @@ -34,8 +34,6 @@ import java.util.*; public class IPv4Only { public static void main(String[] args) throws Exception { - System.setProperty("java.net.preferIPv4Stack","true"); - Enumeration<NetworkInterface> nifs = NetworkInterface.getNetworkInterfaces(); while (nifs.hasMoreElements()) { NetworkInterface nif = nifs.nextElement(); |