[jdk11u-dev] Integrated: 8220083: Remove hard-coded 127.0.0.1 loopback address in JDK networking tests
Goetz Lindenmaier
goetz at openjdk.org
Mon Nov 6 07:32:19 UTC 2023
On Thu, 26 Oct 2023 14:08:19 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:
> I backport this test improvement as prereq of 8223145 Replace wildcard address with loopback or local host in tests - part 1
>
> I had to resolve the following files:
>
> test/jdk/com/sun/net/httpserver/bugs/6725892/Test.java
> Copyright
>
> test/jdk/java/net/SocketOption/TcpKeepAliveTest.java
> Changes already backported. Skipped.
>
> test/jdk/java/nio/channels/SocketChannel/CloseRegisteredChannel.java
> Resolved due to context.
>
> test/jdk/sun/net/www/protocol/http/TunnelThroughProxy.java
> Patch skipped because "8216986: Remove unused code from SocksSocketImpl" not in 11.
>
> SendFailed.java
> I had to add import for InetAddress to make it work.
>
> Tests all pass.
This pull request has now been integrated.
Changeset: d0045daa
Author: Goetz Lindenmaier <goetz at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/d0045daa83d0771f1ba5d7bf5da6bdffa41968da
Stats: 69 lines in 25 files changed: 10 ins; 4 del; 55 mod
8220083: Remove hard-coded 127.0.0.1 loopback address in JDK networking tests
Tests that hardcode "127.0.0.1" fail in an environment where only IPv6 is available and IPv4 is not.
Reviewed-by: mbaesken
Backport-of: ef9ce3be1e33f1a45a6d8fbcbe3d4ceffcf7c4ce
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/2222
More information about the jdk-updates-dev
mailing list