RFR 8216417: cleanup of IPv6 scope-id handling
Michael McMahon
michael.x.mcmahon at oracle.com
Tue Jun 11 13:55:34 UTC 2019
Hi Chris
DatagramSocket has its own copies of the same fields and it stores
the values supplied by the caller (rather than the scopified version),
which are returned by getRemoteSocketAddress() and getInetAddress().
Michael.
On 11/06/2019, 14:19, Chris Hegarty wrote:
> Michael,
>
>> On 11 Jun 2019, at 12:11, Michael McMahon<michael.x.mcmahon at oracle.com> wrote:
>>
>> Thanks for the review Alan.
>> I've made the changes suggested by you and Daniel
>> and added a test to Scoping.java for checking the connected IP address.
>>
>> http://cr.openjdk.java.net/~michaelm/8216417/webrev.3/index.html
> Looks like AbstractPlainDatagramSocketImpl::connect sets the
> connected address to the address including the scope. Strangely,
> it looks like there is a test for this particular scenario, it should
> catch the problem, no?
>
> -Chirs.
>
>
More information about the nio-dev
mailing list