JDK-8220499 : Update JDK networking tests for IPv6-only environments
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 13
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-03-12
  • Updated: 2022-01-17
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.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8220083 :  
JDK-8220575 :  
JDK-8220673 :  
JDK-8220675 :  
JDK-8221570 :  
JDK-8221684 :  
JDK-8223652 :  
JDK-8223880 :  
JDK-8224014 :  
JDK-8224018 :  
JDK-8224019 :  
JDK-8224081 :  
JDK-8224248 :  
JDK-8224256 :  
Description
Many of the networking tests in the JDK assume IPv4 support. This may not always be the case.

Specifically:
 1) Remove hardcoded IPv4 literals, e.g. 127.0.0.1.
 2) Correctly format URI's that contain a retrieved IPv6 literal host, e.g. add square brackets.
 3) Update hardcoded 127.0.0.1 in tests that use pre-generated certificates.
 4) Optional-ize tests that run with -Djava.net.preferIPv4Stack
 5) Ensure use of preferIPv6Addresses, where applicable
 6) ...

A test library utility that correctly determines the environment would be useful, e.g. IPv4-only, IPv4/IPv6 ( dual stack ), or IPv6-only.
Comments
I see Chris has already linked JDK-8184770 to JDK-8221681, the umbrella bug for implementation issues. Thanks!
01-04-2019

The JDK-8184770 work is related to this well.
29-03-2019