-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b09
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8369399 | 25.0.2 | Hari Prasad Kummari | P4 | Resolved | Fixed | b02 |
| JDK-8369520 | 21.0.10-oracle | Hari Prasad Kummari | P4 | Resolved | Fixed | b02 |
| JDK-8369887 | 21.0.10 | Goetz Lindenmaier | P4 | Resolved | Fixed | master |
| JDK-8369521 | 17.0.18-oracle | Hari Prasad Kummari | P4 | Resolved | Fixed | b02 |
| JDK-8369892 | 17.0.18 | Goetz Lindenmaier | P4 | Resolved | Fixed | master |
| JDK-8369522 | 11.0.30-oracle | Hari Prasad Kummari | P4 | Resolved | Fixed | b02 |
| JDK-8369676 | 8u481 | Hari Prasad Kummari | P4 | Resolved | Fixed | b02 |
for Linux there is no IPv4 configuration but the IPv4 stack remains enabled
For macOS, and windows the IPv4 stacks are disabled, and IPv4 configuration removed
add IPSupport::printPlatformSupport(System.out);
to the start of main
public class IPv4Only {
public static void main(String[] args) throws Exception {
IPSupport::printPlatformSupport(System.out);
if (IPSupport.hasIPv4()) {
System.out.println("Testing IPv4");
Enumeration<NetworkInterface> nifs = NetworkInterface.getNetworkInterfaces();
while (nifs.hasMoreElements()) {
NetworkInterface nif = nifs.nextElement();
Enumeration<InetAddress> addrs = nif.getInetAddresses();
while (addrs.hasMoreElements()) {
InetAddress hostAddr = addrs.nextElement();
if ( hostAddr instanceof Inet6Address ){
throw new RuntimeException( "NetworkInterfaceV6List failed - found v6 address " + hostAddr.getHostAddress() );
}
}
}
- backported by
-
JDK-8369399 Add IPSupport::printPlatformSupport to java/net/NetworkInterface/IPv4Only.java
-
- Resolved
-
-
JDK-8369520 Add IPSupport::printPlatformSupport to java/net/NetworkInterface/IPv4Only.java
-
- Resolved
-
-
JDK-8369521 Add IPSupport::printPlatformSupport to java/net/NetworkInterface/IPv4Only.java
-
- Resolved
-
-
JDK-8369522 Add IPSupport::printPlatformSupport to java/net/NetworkInterface/IPv4Only.java
-
- Resolved
-
-
JDK-8369676 Add IPSupport::printPlatformSupport to java/net/NetworkInterface/IPv4Only.java
-
- Resolved
-
-
JDK-8369887 Add IPSupport::printPlatformSupport to java/net/NetworkInterface/IPv4Only.java
-
- Resolved
-
-
JDK-8369892 Add IPSupport::printPlatformSupport to java/net/NetworkInterface/IPv4Only.java
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk17u-dev/b86d8505
-
Commit(master)
openjdk/jdk21u-dev/983dea44
-
Commit(master)
openjdk/jdk25u/6569f3ef
-
Commit(master)
openjdk/jdk/2f1aed2a
-
Review(master)
openjdk/jdk17u-dev/4042
-
Review(master)
openjdk/jdk21u-dev/2320
-
Review(master)
openjdk/jdk25u/273
-
Review(master)
openjdk/jdk/26265