Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8329733

Update the documentation in java.net.SocketOptions to direct to java.net.StandardSocketOptions

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 23
    • None
    • core-libs
    • b18

    Description

      The java.net.SocketOptions is a legacy interface with constants for java.net.SocketImpl implementations. The newer class java.net.StandardSocketOptions is meant to be used by application developers.

      The current javadoc on some of the legacy java.net.SocketOptions interface's field isn't accurate. For example java.net.SocketOptions.SO_REUSEADDR currently says:

      > ... This is used only for MulticastSockets in java, and it is set by default for MulticastSockets.
      > Valid for: DatagramSocketImpl

      This isn't true.

      The javadoc on each of these fields should be cleaned up to instead point to the corresponding field in java.net.StandardSocketOptions.

      Attachments

        Issue Links

          Activity

            People

              jpai Jaikiran Pai
              jpai Jaikiran Pai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: