-
Bug
-
Resolution: Fixed
-
P4
-
25
-
master
java/nio/channels/DatagramChannel/PromiscuousIPv6.java currently has a programmatic check for the OS platform, and throws a Skipped exception for those OS platform which will not run the test.
In line with some recent changes, change the test to use @requires for platform selection
private static boolean supportedByPlatform() {
return Platform.isOSX() || Platform.isLinux();
}
public static void main(String[] args) throws IOException {
boolean hasIPV6MulticastAll;
if (!supportedByPlatform()) {
throw new SkippedException("This test should not be run on this platform");
} else {
This can be changed to
@requires (os.family == "linux") || (os.family == "mac")
In line with some recent changes, change the test to use @requires for platform selection
private static boolean supportedByPlatform() {
return Platform.isOSX() || Platform.isLinux();
}
public static void main(String[] args) throws IOException {
boolean hasIPV6MulticastAll;
if (!supportedByPlatform()) {
throw new SkippedException("This test should not be run on this platform");
} else {
This can be changed to
@requires (os.family == "linux") || (os.family == "mac")
- links to
-
Commit(master) openjdk/jdk/78b1360e
-
Review(master) openjdk/jdk/25781