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 - ###@###.###
======================================================================
- duplicates
-
JDK-4111975 java.net.ServerSocket -- no null constructor
-
- Resolved
-