File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
jdk/test/java/security/cert/CertPathValidator/OCSP Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2004, 2014 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2004, 2015 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
3737 */
3838
3939import java .io .*;
40- import java .net .SocketException ;
40+ import java .net .* ;
4141import java .util .*;
4242import java .security .Security ;
4343import java .security .cert .*;
@@ -94,7 +94,9 @@ public static void main(String args[]) throws Exception {
9494 throw new Exception ("Successfully validated an invalid path" );
9595
9696 } catch (CertPathValidatorException e ) {
97- if (! (e .getCause () instanceof SocketException )) {
97+ Throwable rootCause = e .getCause ();
98+ if (!(rootCause instanceof SocketException ||
99+ rootCause instanceof SocketTimeoutException )) {
98100 throw e ;
99101 }
100102
You can’t perform that action at this time.
0 commit comments