8234756: (dc spec) DatagramChannel.read should not specify that they return -1

Alan Bateman Alan.Bateman at oracle.com
Tue Nov 26 07:26:29 UTC 2019


On 26/11/2019 01:21, Brian Burkhalter wrote:
> Please review this simple doc change [1] to fix [2]. CSR will follow code review.
>
Thanks for picking this up one. Yes, there is an issue @return inherited 
from the methods in the interfaces but we have a tricker issue that the 
return value is ambiguous when a connected DatagramChannel is configured 
non-blocking and a zero-length datagram is received. So I suspect we 
will require additional javadoc, still thinking about this (long 
standing) issue.

-Alan


More information about the nio-dev mailing list