RFR: 8366577: Deprecate java.net.Socket::setPerformancePreferences [v2]
Volkan Yazici
vyazici at openjdk.org
Tue Nov 4 17:32:48 UTC 2025
> `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:
Improve Javadoc
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28129/files
- new: https://git.openjdk.org/jdk/pull/28129/files/50826c3e..41c918cf
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28129&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28129&range=00-01
Stats: 9 lines in 3 files changed: 9 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/28129.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28129/head:pull/28129
PR: https://git.openjdk.org/jdk/pull/28129
More information about the net-dev
mailing list