changeset 9685:7737afaf2228

8047187: Test jdk/net/Sockets/Test.java fails to compile after fix JDK-8046588 Reviewed-by: chegar
author michaelm
date Thu, 19 Jun 2014 12:41:34 +0100
parents f06e3b67de31
children 3bb6a16b2690
files test/jdk/net/Sockets/Test.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/net/Sockets/Test.java	Thu Jun 19 12:59:19 2014 +0400
+++ b/test/jdk/net/Sockets/Test.java	Thu Jun 19 12:41:34 2014 +0100
@@ -78,7 +78,10 @@
         final int udp_port = dg.getLocalPort();
 
         // If option not available, end test
-        Set<SocketOption<?>> options = dg.supportedOptions();
+        Set<SocketOption<?>> options = Sockets.supportedOptions(
+            DatagramSocket.class
+        );
+
         if (!options.contains(ExtendedSocketOptions.SO_FLOW_SLA)) {
             System.out.println("SO_FLOW_SLA not supported");
             return;