RFR: 8262409: sun/security/ssl/SSLSocketImpl/SSLSocketImplThrowsWrongExceptions. SSL test failures caused by java failed with "Server reported the wrong exception"
Clive Verghese
cverghese at openjdk.java.net
Wed Jun 2 17:32:32 UTC 2021
On Wed, 2 Jun 2021 14:03:57 GMT, Fernando Guallini <fguallini at openjdk.org> wrote:
> The test `SSLSocketImplThrowsWrongExceptions` is failing intermittently after the change: [JDK-8259662: Don't wrap SocketExceptions into SSLExceptions in SSLSocketImpl](https://bugs.openjdk.java.net/browse/JDK-8259662)
>
> Since SocketExceptions are not wrapped into SSLException, also need to be caught. Other tests that were expecting a SSLException to be thrown under certain condition were updated with a similar fix in the change previously mentioned.
>
> In addition, thread.sleep was replaced with a CountDownLatch for client/server synchronization
Thank you @fguallini for fixing this test.
Should the SocketException be expected by the client logic as well?
https://github.com/openjdk/jdk/blob/3631a39a4797919acbc7862cb94fa7f7be7f4f8a/test/jdk/sun/security/ssl/SSLSocketImpl/SSLSocketImplThrowsWrongExceptions.java#L135
-------------
PR: https://git.openjdk.java.net/jdk/pull/4308
More information about the security-dev
mailing list