RFR: 8366577: Deprecate java.net.Socket::setPerformancePreferences [v2]

Volkan Yazici vyazici at openjdk.org
Tue Nov 4 20:04:29 UTC 2025


On Tue, 4 Nov 2025 19:54:32 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Volkan Yazici has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Improve Javadoc
>
> src/java.base/share/classes/java/net/SocketImpl.java line 362:
> 
>> 360:      *
>> 361:      * @deprecated This function has always been a no-op.
>> 362:      * It is deprecated for removal without any replacement.
> 
> The method  description already has "By default, this method does nothing, unless it is overridden in a sub-class".  What would you think about have the deprecated message be reduced down to "This method was intended to allow for protocols that are now obsolete"?

Implemented in c9384b09ba9. I'm right away updating the CSR specification too.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28129#discussion_r2491895289


More information about the net-dev mailing list