Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8250770: Net.java translateToSocketException does not handle IOException
Reviewed-by: alanb, dfuchs
  • Loading branch information
MBaesken committed Jul 29, 2020
1 parent 7efa609 commit 11a8c9c13ed9b5614a46c3b65de2b4f7f42b8281
Showing 1 changed file with 3 additions and 1 deletion.
@@ -185,8 +185,10 @@ else if (x instanceof NotYetBoundException)
nx = new SocketException("Socket is not bound yet");
else if (x instanceof UnsupportedAddressTypeException)
nx = new SocketException("Unsupported address type");
else if (x instanceof UnresolvedAddressException) {
else if (x instanceof UnresolvedAddressException)
nx = new SocketException("Unresolved address");
else if (x instanceof IOException) {
nx = new SocketException(x.getMessage());
}
if (nx != x)
nx.initCause(x);

0 comments on commit 11a8c9c

Please sign in to comment.