< prev index next >
test/jdk/java/nio/channels/DatagramChannel/MulticastSendReceiveTests.java
Print this page
rev 59383 : [mq]: final
*** 202,212 ****
id = sendDatagram(source, nif, group, port);
receiveDatagram(dc, source, id);
} catch (UnsupportedOperationException x) {
String os = System.getProperty("os.name");
// Exclude-mode filtering supported on these platforms so UOE should never be thrown
! if (os.equals("SunOS") || os.equals("Linux"))
throw x;
System.out.println("Exclude-mode filtering not supported!");
}
key.drop();
--- 202,212 ----
id = sendDatagram(source, nif, group, port);
receiveDatagram(dc, source, id);
} catch (UnsupportedOperationException x) {
String os = System.getProperty("os.name");
// Exclude-mode filtering supported on these platforms so UOE should never be thrown
! if (os.equals("Linux"))
throw x;
System.out.println("Exclude-mode filtering not supported!");
}
key.drop();
*** 232,242 ****
id = sendDatagram(source, nif, group, port);
receiveDatagram(dc, source, id);
} catch (UnsupportedOperationException x) {
String os = System.getProperty("os.name");
// Include-mode filtering supported on these platforms so UOE should never be thrown
! if (os.equals("SunOS") || os.equals("Linux"))
throw x;
System.out.println("Include-mode filtering not supported!");
}
}
}
--- 232,242 ----
id = sendDatagram(source, nif, group, port);
receiveDatagram(dc, source, id);
} catch (UnsupportedOperationException x) {
String os = System.getProperty("os.name");
// Include-mode filtering supported on these platforms so UOE should never be thrown
! if (os.equals("Linux"))
throw x;
System.out.println("Include-mode filtering not supported!");
}
}
}
*** 257,267 ****
// Platforms that allow dual sockets join IPv4 multicast groups
boolean canIPv6JoinIPv4Group =
Platform.isLinux() ||
Platform.isOSX() ||
- Platform.isSolaris() ||
Platform.isWindows();
for (NetworkInterface nif : ip4MulticastInterfaces) {
InetAddress source = config.ip4Addresses(nif).iterator().next();
test(UNSPEC, nif, ip4Group, source);
--- 257,266 ----
< prev index next >