# HG changeset patch # User jjiang # Date 1526888425 -28800 # Node ID fb93f16d20fac75464af0f9699945931739660cb # Parent c31233a71bd9bf50915ed7fd997fe5e38bb01c62 sun/security/ssl/AppOutputStream/NoExceptionOnClose.java changes the expected exception diff -r c31233a71bd9 -r fb93f16d20fa test/jdk/sun/security/ssl/AppOutputStream/NoExceptionOnClose.java --- a/test/jdk/sun/security/ssl/AppOutputStream/NoExceptionOnClose.java Sun May 20 09:45:36 2018 -0700 +++ b/test/jdk/sun/security/ssl/AppOutputStream/NoExceptionOnClose.java Mon May 21 15:40:25 2018 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -152,11 +152,11 @@ try { sslOS.write(22); sslOS.flush(); - } catch (SocketException socketClosed) { + } catch (SSLException socketClosed) { System.out.println("Received \"" + socketClosed.getMessage() + "\" exception as expected"); isSocketClosedThrown = true; - } + } if (!isSocketClosedThrown) { throw new Exception("No Exception thrown on write() after" + " close()");