RFR[8230946]: Clarify security manager behaviour of a connected DatagramSocket and DatagramChannel

Patrick Concannon patrick.concannon at oracle.com
Fri Sep 27 15:07:46 UTC 2019


Hi Alan,


Thanks for the review.

On 24/09/2019 16:25, Alan Bateman wrote:
>
> The clarification to DatagramSocket.receive on how it behaves when 
> there is a security manager and not connected may require some 
> adjusting to DatagramChannel's receive spec too. The specification is 
> that a SecurityException is thrown but the implementation behavior is 
> to drop the datagram. Separate issue but we should try to fix that 
> while in the area. I also note that both DatagramSocket and 
> DatagramChannel may have to bind on first usage which may involve a 
> permission check that we should ensure all succeeds.
>

Regarding the above, I can open this as a separate issue if you like?


Kind regards,

Patrick



More information about the nio-dev mailing list