RFR[8235783]: DatagramSocket::disconnect should allow an implementation to throw UncheckedIOException

Daniel Fuchs daniel.fuchs at oracle.com
Wed Dec 18 15:10:30 UTC 2019


On 18/12/2019 16:06, Chris Hegarty wrote:
> Not withstanding the various different post-close behaviour of the
> methods of DatagramSocket ( throw IOException, silently ignore, return a
> default value, return last known value ), I think that it would be best
> to clarify the specification with the existing, long standing,
> behaviour; "Invoking this method on a closed socket has*effectively*  no
> effect." - or something like that.
> 
> It would be good to clarify that now, as part of this change, since it’s
> an obvious question that arises now that UncheckedIOException is being
> added.

Agreed.

-- daniel


More information about the net-dev mailing list