git: openjdk/mobile: 8233141: DatagramSocket.send doesn't specify exception thrown when no target address

duke duke at openjdk.java.net
Mon Nov 18 17:09:15 UTC 2019


Changeset: be18a54c
Author:    Daniel Fuchs <dfuchs at openjdk.org>
Date:      2019-11-18 16:48:05 +0000
URL:       https://git.openjdk.java.net/mobile/commit/be18a54c

8233141: DatagramSocket.send doesn't specify exception thrown when no target address

DatagramSocket and MulticastSocket send methods are changed to throw IllegalArgumentException if no target address can be determined.

Reviewed-by: alanb

! src/java.base/share/classes/java/net/DatagramSocket.java
! src/java.base/share/classes/java/net/MulticastSocket.java
+ test/jdk/java/net/DatagramSocket/AddressNotSet.java
! test/jdk/java/net/DatagramSocket/SendDatagramToBadAddress.java



More information about the mobile-changes mailing list