8231570: (dc) Clarify implicit bind behavior of DatagramChannel
Update to DatagramChannel spec to make it clear that SecurityException can be thrown in connect send and receive methods Reviewed-by: alanb, chegar, dfuchs
This commit is contained in:
parent
8e546a3fe0
commit
3c1310a60a
@ -305,8 +305,10 @@ public abstract class DatagramChannel
|
|||||||
* If the type of the given remote address is not supported
|
* If the type of the given remote address is not supported
|
||||||
*
|
*
|
||||||
* @throws SecurityException
|
* @throws SecurityException
|
||||||
* If a security manager has been installed
|
* If a security manager has been installed and it does not
|
||||||
* and it does not permit access to the given remote address
|
* permit access to the given remote address, or if unbound,
|
||||||
|
* the security manager {@link SecurityManager#checkListen checkListen}
|
||||||
|
* method denies the operation
|
||||||
*
|
*
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* If some other I/O error occurs
|
* If some other I/O error occurs
|
||||||
@ -409,6 +411,11 @@ public abstract class DatagramChannel
|
|||||||
* closing the channel and setting the current thread's
|
* closing the channel and setting the current thread's
|
||||||
* interrupt status
|
* interrupt status
|
||||||
*
|
*
|
||||||
|
* @throws SecurityException
|
||||||
|
* If unbound, and a security manager has been installed and
|
||||||
|
* its {@link SecurityManager#checkListen checkListen} method
|
||||||
|
* denies the operation
|
||||||
|
*
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* If some other I/O error occurs
|
* If some other I/O error occurs
|
||||||
*/
|
*/
|
||||||
@ -480,9 +487,10 @@ public abstract class DatagramChannel
|
|||||||
* If the type of the given remote address is not supported
|
* If the type of the given remote address is not supported
|
||||||
*
|
*
|
||||||
* @throws SecurityException
|
* @throws SecurityException
|
||||||
* If a security manager has been installed
|
* If a security manager has been installed and it does not permit
|
||||||
* and it does not permit datagrams to be sent
|
* datagrams to be sent to the given address, or if unbound, and
|
||||||
* to the given address
|
* the security manager's {@link SecurityManager#checkListen checkListen}
|
||||||
|
* method denies the operation
|
||||||
*
|
*
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* If some other I/O error occurs
|
* If some other I/O error occurs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user