-
Enhancement
-
Resolution: Fixed
-
P3
-
7
-
b27
-
generic
-
generic
-
Verified
For javax.net.ssl.SSLSocket class
constructor
protected SSLSocket(InetAddress address, int port,
InetAddress clientAddress, int clientPort)
allows passing null as clientAddress. ( in JDK 5, JDK 6, JDK 7 )
It looks like in this case the system will pick up a valid local address for create/bind.
Specification for this constructor doesn't reflect this.
The same promlem is in spec for java.net.Socket class for similar constructor.
But for instance spec in Socket class for method
void bind(SocketAddress bindpoint)
clearly says that:
"If the address is null, then the system will pick up an ephemeral port and a valid local address to bind the socket."
So we need to mention about possibilty of passing null as local_address in case of
constructor
protected SSLSocket(InetAddress address, int port,
InetAddress clientAddress, int clientPort)
and the same for class Socket:
Socket(InetAddress address, int port, InetAddress localAddr, int localPort)
constructor
protected SSLSocket(InetAddress address, int port,
InetAddress clientAddress, int clientPort)
allows passing null as clientAddress. ( in JDK 5, JDK 6, JDK 7 )
It looks like in this case the system will pick up a valid local address for create/bind.
Specification for this constructor doesn't reflect this.
The same promlem is in spec for java.net.Socket class for similar constructor.
But for instance spec in Socket class for method
void bind(SocketAddress bindpoint)
clearly says that:
"If the address is null, then the system will pick up an ephemeral port and a valid local address to bind the socket."
So we need to mention about possibilty of passing null as local_address in case of
constructor
protected SSLSocket(InetAddress address, int port,
InetAddress clientAddress, int clientPort)
and the same for class Socket:
Socket(InetAddress address, int port, InetAddress localAddr, int localPort)
- relates to
-
JDK-6546669 (spec)javax.net.ssl.SSLSocket() throws undocumented exceptions
- Closed
-
JDK-6573503 Socket(raddr, rport, laddr, lport) allows null as laddr that spec doesn't reflect
- Closed