JDK-8256427 : Test com/sun/jndi/dns/ConfigTests/PortUnreachable.java does not work on AIX
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 11,15,16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • Submitted: 2020-11-16
  • Updated: 2022-01-05
  • Resolved: 2020-11-18
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 11 JDK 15 JDK 16
11.0.10Fixed 15.0.2Fixed 16 b26Fixed
Related Reports
Relates :  
Description
The test com/sun/jndi/dns/ConfigTests/PortUnreachable.java is not working on AIX.
It tests that when a DNS server is unreachable it fails quickly with a PortUnreachableException due to ICMP Destination Unreachable packets received and not having to wait for the full timeout interval.
Unfortunately, on AIX such ICMP packets are not received, so the only exception cause will be the timeout. Hence, this test can't work on AIX, so it should not be executed there.
Comments
Fix request (11u, 15u): This fix silences a test error on AIX. It applies clean to both, 11u and 15u.
19-11-2020

Changeset: 5912df24 Author: Christoph Langer <clanger@openjdk.org> Date: 2020-11-18 22:00:19 +0000 URL: https://github.com/openjdk/jdk/commit/5912df24
18-11-2020

In JDK-7164518 one can find a quite good analysis of a similar issue on Mac. It might help understanding the AIX case as well.
16-11-2020