JDK-8039433 : Adjustment to socket getOption(), setOption() methods
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • Submitted: 2014-04-08
  • Updated: 2017-05-19
  • Resolved: 2016-07-21
Related Reports
Relates :  
Description
8036979 added the new setOption() and getOption() methods to the various socket classes in java.net.
Originally, it was intended to implement these methods independent of the underlying SocketImpls.

This turned out to be problematic and the implementation needs to be delegated to the impl (with a default implementation for legacy options).

To support this setOption, getOption and supportedOptions need to be added to SocketImpl.

Also, the existing public supportedOptions() methods need to throw IOException now.
Comments
It is not a bug.
21-07-2016

Is this still applicable?
20-05-2016