RFR[8230946]: Clarify security manager behaviour of a connected DatagramSocket and DatagramChannel
Alan Bateman
Alan.Bateman at oracle.com
Fri Sep 27 15:49:37 UTC 2019
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