[ipv6] RFR: 8224248: test/jdk/java/net/InetAddress/CheckJNI.java assumes 127.0.0.1 is available

Arthur Eubanks aeubanks at google.com
Mon May 20 21:30:37 UTC 2019


bug: https://bugs.openjdk.java.net/browse/JDK-8224248
webrev: http://cr.openjdk.java.net/~aeubanks/8224248/webrev.00/

test/jdk/java/net/InetAddress/CheckJNI.java fails in IPv6-only environments
because 127.0.0.1 is not available.

Cleaned up the test a bit. 127.0.0.1 is now only tested when IPv4 is
available. Added tests for InetAddress.getLoopbackAddress() regardless of
IPv4/IPv6 availability for more coverage (since there is a comment saying
try to invoke as much native code as possible).
Verified this passes in an IPv6-only environment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190520/cb565d88/attachment.html>


More information about the net-dev mailing list