RFR: 8366577: Deprecate java.net.Socket::setPerformancePreferences [v3]
Daniel Fuchs
dfuchs at openjdk.org
Wed Nov 5 11:48:16 UTC 2025
On Tue, 4 Nov 2025 20:04:27 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:
>> `java.net.Socket::setPerformancePreferences` was introduced in Java 1.5 with the intention of providing a declarative API for configuring the performance-wise characteristics of the underlying socket. It has always been a no-op and a corpus search does not reveal any significant usages of it. Recently merged [JDK-8366575] removes the SDP (Sockets Direct Protocol) support, and this further undermines the value of `setPerformancePreferences`. This PR deprecates `setPerformancePreferences` and friends _for removal_.
>>
>> [JDK-8366575]: https://bugs.openjdk.org/browse/JDK-8366575
>
> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
>
> Shorten `@deprecated` message
Looks good to me.
-------------
Marked as reviewed by dfuchs (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/28129#pullrequestreview-3421476561
More information about the security-dev
mailing list