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

can not set/get extendedOptions to ServerSocket

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • core-libs
    • None
    • b35

      If you try to set or get any extendedOptions for ServerSocket, will throw "UnsupportedOperationException". the root cause is below code in PlainSocketImpl.java
      #######################
      if (getSocket() == null) {
                      throw new UnsupportedOperationException("unsupported option");
                  }
      #######################

      getSocket() will always return null in case of serverSocket.

            vtewari Vyom Tewari
            vtewari Vyom Tewari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: