JDK-8247463 : java/nio/channels/etc/OpenAndConnect.java fails due to IPv6 not available
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-06-12
  • Updated: 2024-10-17
  • Resolved: 2020-06-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15 JDK 16
15 b28Fixed 16Fixed
Related Reports
Relates :  
Description
IPSupport - IPv4: true
IPSupport - IPv6: false
preferIPv4Stack: false
preferIPv6Addresses: false
IA4LOCAL:    /*.*.*.*               <--- here is my ip
IA6LOCAL:    null
IA4ANYLOCAL: /0.0.0.0
IA6ANYLOCAL: /0:0:0:0:0:0:0:0
IA4LOOPBACK: /127.0.0.1
IA6LOOPBACK: /0:0:0:0:0:0:0:1
config OpenAndConnect.setup(): success

...

test OpenAndConnect.dcOpenAndConnect(INET, /0.0.0.0, INET, /127.0.0.1): success
test OpenAndConnect.dcOpenAndConnect(INET6, /0:0:0:0:0:0:0:0, null, /0:0:0:0:0:0:0:1): failure
java.lang.UnsupportedOperationException: IPv6 not available
        at java.base/sun.nio.ch.DatagramChannelImpl.<init>(DatagramChannelImpl.java:183)
        at java.base/sun.nio.ch.SelectorProviderImpl.openDatagramChannel(SelectorProviderImpl.java:55)
        at java.base/java.nio.channels.DatagramChannel.open(DatagramChannel.java:188)
        at OpenAndConnect.openDC(OpenAndConnect.java:261)
        at OpenAndConnect.dcOpenAndConnect(OpenAndConnect.java:232)

Comments
Changeset: fd7123b2 Author: Jie Fu <jiefu@openjdk.org> Date: 2020-06-13 14:29:08 +0000 URL: https://git.openjdk.java.net/lanai/commit/fd7123b2
02-07-2020

Changeset: fd7123b2 Author: Jie Fu <jiefu@openjdk.org> Date: 2020-06-13 14:29:08 +0000 URL: https://git.openjdk.java.net/panama-foreign/commit/fd7123b2
02-07-2020

Changeset: fd7123b2 Author: Jie Fu <jiefu@openjdk.org> Date: 2020-06-13 14:29:08 +0000 URL: https://git.openjdk.java.net/amber/commit/fd7123b2
02-07-2020

URL: https://hg.openjdk.java.net/jdk/jdk15/rev/84fceca3def7 User: jiefu Date: 2020-06-15 12:59:35 +0000
15-06-2020