hg: jdk/jdk: 8244933: DatagramSocket.connect does not specify that it may cause datagrams in the socket receive buffer to be discarded
patrick.concannon at oracle.com
patrick.concannon at oracle.com
Wed Jun 10 10:08:48 UTC 2020
Changeset: fca27f266161
Author: pconcannon
Date: 2020-06-10 11:08 +0100
URL: https://hg.openjdk.java.net/jdk/jdk/rev/fca27f266161
8244933: DatagramSocket.connect does not specify that it may cause datagrams in the socket receive buffer to be discarded
Summary: This fix updates the javadoc for `DatagramSocket.connect` to inform the user that it may cause datagrams in the socket receive buffer to be discarded if not previously received via a call to `DatagramSocket.receive`.
Reviewed-by: alanb, dfuchs
! src/java.base/share/classes/java/net/DatagramSocket.java
More information about the jdk-all-changes
mailing list