Skip to content

Commit 79e58cc

Browse files
author
Vinnie Ryan
committed
8132786: java/security/cert/CertPathValidator/OCSP/AIACheck.java fails intermittently
Reviewed-by: mullan
1 parent b7e143e commit 79e58cc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jdk/test/java/security/cert/CertPathValidator/OCSP/AIACheck.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
@@ -37,7 +37,7 @@
3737
*/
3838

3939
import java.io.*;
40-
import java.net.SocketException;
40+
import java.net.*;
4141
import java.util.*;
4242
import java.security.Security;
4343
import 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

0 commit comments

Comments
 (0)