src/java.base/share/classes/java/net/AbstractPlainSocketImpl.java
changeset 50722 bc104aaf24e9
parent 49249 92cca24c8807
child 54155 b5a73f22b2bd
child 57167 82874527373e
equal deleted inserted replaced
50721:e541c1b68b89 50722:bc104aaf24e9
    35 import java.util.Set;
    35 import java.util.Set;
    36 
    36 
    37 import sun.net.ConnectionResetException;
    37 import sun.net.ConnectionResetException;
    38 import sun.net.NetHooks;
    38 import sun.net.NetHooks;
    39 import sun.net.ResourceManager;
    39 import sun.net.ResourceManager;
       
    40 import sun.net.util.SocketExceptions;
    40 
    41 
    41 /**
    42 /**
    42  * Default Socket Implementation. This implementation does
    43  * Default Socket Implementation. This implementation does
    43  * not implement any security checks.
    44  * not implement any security checks.
    44  * Note this class should <b>NOT</b> be public.
    45  * Note this class should <b>NOT</b> be public.
   413             } finally {
   414             } finally {
   414                 releaseFD();
   415                 releaseFD();
   415             }
   416             }
   416         } catch (IOException e) {
   417         } catch (IOException e) {
   417             close();
   418             close();
   418             throw e;
   419             throw SocketExceptions.of(e, new InetSocketAddress(address, port));
   419         }
   420         }
   420     }
   421     }
   421 
   422 
   422     /**
   423     /**
   423      * Binds the socket to the specified address of the specified local port.
   424      * Binds the socket to the specified address of the specified local port.