On Wed, 11 Jun 2025 10:05:28 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

> Can I please get a review of this change which proposes to remove the 
> deprecated-for-removal methods from `MulticastSocket` and 
> `DatagramSocketImpl`? 
> 
> The following methods on `java.net.MulticastSocket` and 
> `java.net.DatagramSocketImpl`:
> 
> 
> public void setTTL(byte ttl) throws IOException
> public byte getTTL() throws IOException
> 
> 
> and this other one on `MulticastSocket`:
> 
> 
> public void send(DatagramPacket p, byte ttl) throws IOException 
> 
> 
> have been deprecated for removal since Java 23, through 
> https://bugs.openjdk.org/browse/JDK-8332181. Even before that they have been 
> deprecated since Java 1.2 and Java 1.4.
> 
> The commit in this PR removes them completely. This PR also removes some 
> tests that were specifically testing the 
> `setTTL()/getTTL()/send(DatagramPacket, byte)` methods. A few other tests 
> have been adjusted to use the alternate `getTimeToLive()/setTimeToLive()` 
> methods where appropriate.
> 
> Existing tests in tier1, tier2 and tier3 continue to pass with these changes.

This pull request has now been integrated.

Changeset: f7cd3fad
Author:    Jaikiran Pai <j...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/f7cd3fad2400cd3a07d8a3a44d86d5dc4d23913e
Stats:     445 lines in 19 files changed: 0 ins; 420 del; 25 mod

8332623: Remove setTTL()/getTTL() methods from 
DatagramSocketImpl/MulticastSocket and MulticastSocket.send(DatagramPacket, 
byte)

Reviewed-by: dfuchs, alanb

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

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

Reply via email to