equal
deleted
inserted
replaced
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 { |