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

Constuctor ServerSocket() declared private.it should be declared protected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.2, 1.2.0
    • core-libs
    • None
    • generic, x86
    • generic, windows_95



      Name: joT67522 Date: 09/03/97


      According to the online JDK1.1 documentation - the Socket and
      ServerSocket classes can now be subclassed. They also
      indicated that their default constructor's, are now protected
      instead of private. This is the case with the Socket class's
      default constructor Socket() - that is, it was private in JDK1.0.2
      but is now protected. However for the ServerSocket class, this
      is not the case. The default constructor ServerSocket()
      is still private, dispite the online documentation indicating
      that it is now protected. The default constructor in the ServerSocket
      class needs to be protected so that subclasses can envoke the
      constructor which intialises a default SocketImpl - PlainSocketImpl.
      Subclasses do not have access to the class PlainSocketImpl and thus
      must use the default constructor in the ServerSocket class. This
      is not currently possible since the default ServerSocket constructor
      is declared private.

      company - University of Western Australia , email - ###@###.###
      ======================================================================

            brenaudsunw Benjamin Renaud (Inactive)
            johsunw Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: