jdk/test/javax/net/ssl/FixingJavadocs/ComURLNulls.java
changeset 29615 b0057b63b4e7
parent 29097 01a70c01f5a1
child 30820 0d4717a011d3
equal deleted inserted replaced
29614:c95b4a5f89d6 29615:b0057b63b4e7
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2015, 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.
    78                 System.out.print("Caught proper exception: ");
    78                 System.out.print("Caught proper exception: ");
    79                 System.out.println(e.getMessage());
    79                 System.out.println(e.getMessage());
    80             }
    80             }
    81 
    81 
    82             try {
    82             try {
    83                 urlc.getServerCertificateChain();
    83                 urlc.getServerCertificates();
    84             } catch (IllegalStateException e) {
    84             } catch (IllegalStateException e) {
    85                 System.out.print("Caught proper exception: ");
    85                 System.out.print("Caught proper exception: ");
    86                 System.out.println(e.getMessage());
    86                 System.out.println(e.getMessage());
    87             }
    87             }
    88 
    88