hg: jdk/sandbox: 8238231: Custom DatagramSocketImpl's create method not called when with protected constructor

chris.hegarty at oracle.com chris.hegarty at oracle.com
Tue Feb 4 18:45:18 UTC 2020


Changeset: 78e0dd9ac15f
Author:    dfuchs
Date:      2020-02-04 18:35 +0000
URL:       https://hg.openjdk.java.net/jdk/sandbox/rev/78e0dd9ac15f

8238231: Custom DatagramSocketImpl's create method not called when with protected constructor
Summary: Allow the socket to be lazily created if not created by the constructor.
Reviewed-by: alanb

! src/java.base/share/classes/java/net/DatagramSocket.java
! test/jdk/java/net/DatagramSocket/SetReceiveBufferSize.java
+ test/jdk/java/net/DatagramSocketImpl/TestCreate.java



More information about the jdk-sandbox-changes mailing list