From 54a74d7ae370426535d9fffef1c67428a4d1b553 Mon Sep 17 00:00:00 2001 From: michaelm Date: Thu, 19 Jun 2014 12:41:34 +0100 Subject: [PATCH] 8047187: Test jdk/net/Sockets/Test.java fails to compile after fix JDK-8046588 Reviewed-by: chegar --- test/jdk/net/Sockets/Test.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/jdk/net/Sockets/Test.java b/test/jdk/net/Sockets/Test.java index 8ab6c3cd9..53adafd8d 100644 --- a/test/jdk/net/Sockets/Test.java +++ b/test/jdk/net/Sockets/Test.java @@ -78,7 +78,10 @@ public class Test { final int udp_port = dg.getLocalPort(); // If option not available, end test - Set> options = dg.supportedOptions(); + Set> options = Sockets.supportedOptions( + DatagramSocket.class + ); + if (!options.contains(ExtendedSocketOptions.SO_FLOW_SLA)) { System.out.println("SO_FLOW_SLA not supported"); return; -- GitLab