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.mcma...@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.


Reply via email to