8217427: [TESTBUG] nio/channels/DatagramChannel/UseDGWithIPv6.java fails without IPv6
Alan Bateman
Alan.Bateman at oracle.com
Mon Jan 21 07:22:30 UTC 2019
On 21/01/2019 07:15, Langer, Christoph wrote:
> :
>
> The test description says: "Check using IPv6 address does not crash the VM". So, in order to preserve these test semantics, I'd rather think you should add the Exception type "java.nio.channels.UnsupportedAddressTypeException" to the catch clause in line 60. This should fix the test error in the failing cases, at least in our environments while still testing that no crashes occur everywhere.
>
I agree, it should be catching UnsupportedAddressTypeException. We
should also update the test description to run the test twice, one with
the default options, the second with -Djava.net.preferIPv4Stack=true.
-Alan
More information about the nio-dev
mailing list