src/java.base/share/classes/sun/nio/ch/Secrets.java
branchunixdomainchannels
changeset 58801 119ac9128c1b
parent 47216 71c04702a3d5
equal deleted inserted replaced
58799:eb491334113f 58801:119ac9128c1b
    45         return p;
    45         return p;
    46     }
    46     }
    47 
    47 
    48     public static SocketChannel newSocketChannel(FileDescriptor fd) {
    48     public static SocketChannel newSocketChannel(FileDescriptor fd) {
    49         try {
    49         try {
    50             return new SocketChannelImpl(provider(), fd, false);
    50             return new InetSocketChannelImpl(provider(), fd, false);
    51         } catch (IOException ioe) {
    51         } catch (IOException ioe) {
    52             throw new AssertionError(ioe);
    52             throw new AssertionError(ioe);
    53         }
    53         }
    54     }
    54     }
    55 
    55 
    56     public static ServerSocketChannel newServerSocketChannel(FileDescriptor fd) {
    56     public static ServerSocketChannel newServerSocketChannel(FileDescriptor fd) {
    57         try {
    57         try {
    58             return new ServerSocketChannelImpl(provider(), fd, false);
    58             return new InetServerSocketChannelImpl(provider(), fd, false);
    59         } catch (IOException ioe) {
    59         } catch (IOException ioe) {
    60             throw new AssertionError(ioe);
    60             throw new AssertionError(ioe);
    61         }
    61         }
    62     }
    62     }
    63 }
    63 }