RFR: 8319417: (dc) DatagramChannel.connect undocumented behavior

Alan Bateman alanb at openjdk.org
Tue Nov 28 12:21:11 UTC 2023


On Mon, 13 Nov 2023 17:28:29 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

> Hi,
> 
> This is a small doc change for DatagramChannel.getLocalAddress() and the equivalent methods on DatagramSocket which documents some existing (but not currently documented) behavior.
> 
> Thanks,
> Michael

Marked as reviewed by alanb (Reviewer).

src/java.base/share/classes/java/nio/channels/DatagramChannel.java line 665:

> 663:      *          {@code SocketAddress} representing the loopback address if
> 664:      *          denied by the security manager, or {@code null} if the
> 665:      *          channel's socket is not bound.

The period at the end of the return description isn't needed, the rest looks good.

-------------

PR Review: https://git.openjdk.org/jdk/pull/16635#pullrequestreview-1752749517
PR Review Comment: https://git.openjdk.org/jdk/pull/16635#discussion_r1407672441


More information about the nio-dev mailing list