hg: jdk/sandbox: 8243507: DatagramSocket constructors don?t always specify what happens when passed invalid parameters

chris.hegarty at oracle.com chris.hegarty at oracle.com
Fri May 29 10:15:42 UTC 2020


Changeset: 4d5a58b0146f
Author:    pconcannon
Date:      2020-05-29 11:08 +0100
URL:       https://hg.openjdk.java.net/jdk/sandbox/rev/4d5a58b0146f

8243507: DatagramSocket constructors don?t always specify what happens when passed invalid parameters
Summary: This fix updates the spec for DatagramSocket's constructors to inform the user of the Exceptions thrown when an invalid argument is passed.
Reviewed-by: dfuchs

! src/java.base/share/classes/java/net/DatagramSocket.java
+ test/jdk/java/net/DatagramSocket/Constructor.java



More information about the jdk-sandbox-changes mailing list