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

Patrick Concannon patrick.concannon at oracle.com
Mon Sep 30 14:10:05 UTC 2019


Hi Alan,


A new issue has been created as requested, and can be found here: 
https://bugs.openjdk.java.net/browse/JDK-8231570


Kind regards,

Patrick

On 27/09/2019 16:49, Alan Bateman wrote:
>
>
> On 27/09/2019 16:07, Patrick Concannon wrote:
>> 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?
> Yes please.
>
> -Alan


More information about the nio-dev mailing list