8217427: [TESTBUG] nio/channels/DatagramChannel/UseDGWithIPv6.java fails without IPv6
Langer, Christoph
christoph.langer at sap.com
Mon Jan 21 07:15:37 UTC 2019
Hi Nick,
first of all, thanks for looking into this issue. We can see it on some of our test machines, too, so we are very interested in getting this fixed.
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.
Please also adjust the copyright year.
Thanks
Christoph
> -----Original Message-----
> From: nio-dev <nio-dev-bounces at openjdk.java.net> On Behalf Of Nick
> Gasson (Arm Technology China)
> Sent: Montag, 21. Januar 2019 05:06
> To: nio-dev at openjdk.java.net
> Cc: nd <nd at arm.com>
> Subject: RFR: 8217427: [TESTBUG]
> nio/channels/DatagramChannel/UseDGWithIPv6.java fails without IPv6
>
> Hi,
>
> Please review this small change to skip the above test if run on a
> system with IPv6 disabled.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8217427
> Webrev: http://cr.openjdk.java.net/~ngasson/8217427/webrev.01/
>
> The convention in other tests (e.g.
> java/net/DatagramSocket/LocalSocketAddress.java) is to skip the test if
> IPv6 is disabled, but UseDGWithIPv6.java will fail with an
> UnsupportedAddressException.
>
> Also tested on a system with IPv6 enabled to check the test still runs.
>
> Thanks,
> Nick
More information about the nio-dev
mailing list