-
Bug
-
Resolution: Fixed
-
P4
-
25
-
b03
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8363740 | 25.0.2 | Hari Prasad Kummari | P4 | Resolved | Fixed | 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")
- backported by
-
JDK-8363740 Amend java/nio/channels/DatagramChannel/PromiscuousIPv6.java to use @requires for OS platform selection
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk25u/79d447ed
-
Commit(master) openjdk/jdk/78b1360e
-
Review(master) openjdk/jdk25u/20
-
Review(master) openjdk/jdk/25781