Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P4
-
Resolution: Fixed
-
Affects Version/s: 5.0, 6, 7
-
Fix Version/s: 7
-
Component/s: security-libs
-
Subcomponent:
-
Resolved In Build:b12
-
CPU:generic
-
OS:generic
-
Verification:Not verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2152905 | OpenJDK6 | Xuelei Fan | P3 | Resolved | Fixed | b01 |
Description
The description of the SSLSocketFactory.createSocket(Socket s,
String host,
int port,
boolean autoClose)
says:
"Throws:
IOException - if an I/O error occurs when creating the socket
UnknownHostException - if the host is not known"
But the implementation
- does not throw UnknownHostException if the host is not known
(e.g. host="incorrect host name") or null
- does not throw IOException if the port is negative
- throws unspecified NullPointerException if parameter s is null
======================================================================
Attachments
Issue Links
- backported by
-
JDK-2152905 (spec) Unspecified behavior of SSLSocketFactory.createSocket() and SSLSocket constructors
-
- Resolved
-
- duplicates
-
JDK-5065738 Unspecified SSLSocket constructors behavior
-
- Closed
-
-
JDK-6580884 (doc) javax.net.ssl.SSLServerSocket.SSLServerSocket( int port, ... ) throws unspecified IAException
-
- Closed
-
-
JDK-5053890 (spec) Unspecified SSLServerSocket constructors behavior
-
- Closed
-
-
JDK-6546657 (spec)javax.net.ssl.SSLServerSocket(int port) throws undocumented IAA
-
- Closed
-
- relates to
-
JDK-6580891 javax.net.ssl.SSLServerSocket.SSLServerSocket(port, backlog) spec isn't clear
-
- Closed
-
-
JDK-6285145 (spec) Unspecified Socket/ServerSocket constructors behavior
-
- Closed
-