On Mon, 5 May 2025 10:12:11 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

> Can I please get a review of this change which proposes to respecify the 2 
> `java.net.Socket` constructors that allow construction of UDP sockets? This 
> addresses https://bugs.openjdk.org/browse/JDK-8356154.
> 
> As noted in that JBS issue, in Java 23 we deprecated for removal the 2 
> `Socket` constructors that allowed UDP socket creation. The plan continues to 
> be to remove those constructors. Before removing those, in order to allow for 
> applications to notice this deprecation, these constructors are now being 
> respecified to throw an `IllegalArgumentException` when the `stream` 
> parameter is `false`.
> 
> I will create a CSR once we settle on these changes.
> 
> tier1 through tier8 tests have been run with this change and no related 
> failures have been noticed.

This pull request has now been integrated.

Changeset: 52a5583d
Author:    Jaikiran Pai <j...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/52a5583d691388f833c3aeb56ce92cbfb5d61274
Stats:     172 lines in 9 files changed: 37 ins; 72 del; 63 mod

8356154: Respecify java.net.Socket constructors that allow creating UDP sockets 
to throw IllegalArgumentException

Reviewed-by: dfuchs, alanb

-------------

PR: https://git.openjdk.org/jdk/pull/25031

Reply via email to