mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8319417: (dc) DatagramChannel.connect undocumented behavior
Reviewed-by: alanb
This commit is contained in:
parent
abf2e49097
commit
a2c5f1fc91
2 changed files with 19 additions and 0 deletions
|
@ -645,6 +645,13 @@ public abstract class DatagramChannel
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
* <p>
|
||||
* If the channel's socket was initially bound to the wildcard address and
|
||||
* is now {@link #isConnected connected}, then the address returned
|
||||
* may be the local address selected as the source address for
|
||||
* datagrams sent via this channel instead of the wildcard address.
|
||||
* When {@link #disconnect} is called, the bound address reverts
|
||||
* to the wildcard address.
|
||||
* <p>
|
||||
* If there is a security manager set, its {@code checkConnect} method is
|
||||
* called with the local address and {@code -1} as its arguments to see
|
||||
* if the operation is allowed. If the operation is not allowed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue