Author: markt Date: Thu Jul 28 12:50:04 2011 New Revision: 1151825 URL: http://svn.apache.org/viewvc?rev=1151825&view=rev Log: Catch less specific exception to deal with intermittent failures with OpenJDK
Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java Modified: tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java?rev=1151825&r1=1151824&r2=1151825&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java (original) +++ tomcat/trunk/test/org/apache/tomcat/util/net/TestCustomSsl.java Thu Jul 28 12:50:04 2011 @@ -19,7 +19,7 @@ package org.apache.tomcat.util.net; import java.io.File; import java.net.SocketException; -import javax.net.ssl.SSLHandshakeException; +import javax.net.ssl.SSLException; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -139,7 +139,7 @@ public class TestCustomSsl extends Tomca fail(se.getMessage()); se.printStackTrace(); } - } catch (SSLHandshakeException he) { + } catch (SSLException he) { if (serverTrustAll) { fail(he.getMessage()); he.printStackTrace(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org