git: openjdk/mobile: 8231260: (dc) DatagramChannel::disconnect changes the port of the local address to 0 (lnx)
duke
duke at openjdk.java.net
Wed Oct 9 16:53:51 UTC 2019
Changeset: a690af38
Author: Daniel Fuchs <dfuchs at openjdk.org>
Date: 2019-10-09 17:38:58 +0000
URL: https://git.openjdk.java.net/mobile/commit/a690af38
8231260: (dc) DatagramChannel::disconnect changes the port of the local address to 0 (lnx)
DatagramChannel::disconnect will attempt to rebind to the original port if the local port switches back to 0 after the association is disolved by the system.
Reviewed-by: alanb, chegar, fweimer
! src/java.base/share/classes/java/nio/channels/DatagramChannel.java
! src/java.base/share/classes/sun/nio/ch/DatagramChannelImpl.java
+ test/jdk/java/nio/channels/DatagramChannel/AddressesAfterDisconnect.java
More information about the mobile-changes
mailing list