test/jdk/java/net/Socket/asyncClose/AsyncClose.java
changeset 55102 59567035d279
parent 54811 9db7c0f561a6
child 58679 9c3209ff7550
equal deleted inserted replaced
55101:c41783eb76eb 55102:59567035d279
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    33  * @library /test/lib
    33  * @library /test/lib
    34  * @summary Check that {Socket,ServerSocket,DatagramSocket}.close will
    34  * @summary Check that {Socket,ServerSocket,DatagramSocket}.close will
    35  *          cause any thread blocked on the socket to throw a SocketException.
    35  *          cause any thread blocked on the socket to throw a SocketException.
    36  * @run main AsyncClose
    36  * @run main AsyncClose
    37  * @run main/othervm -Djava.net.preferIPv4Stack=true AsyncClose
    37  * @run main/othervm -Djava.net.preferIPv4Stack=true AsyncClose
       
    38  * @run main/othervm -Djdk.net.usePlainSocketImpl AsyncClose
    38  */
    39  */
    39 
    40 
    40 public class AsyncClose {
    41 public class AsyncClose {
    41 
    42 
    42     public static void main(String args[]) throws Exception {
    43     public static void main(String args[]) throws Exception {