Index: trunk/modules/crypto/src/main/java/javax/crypto/CipherOutputStream.java =================================================================== --- trunk/modules/crypto/src/main/java/javax/crypto/CipherOutputStream.java (revision 431782) +++ trunk/modules/crypto/src/main/java/javax/crypto/CipherOutputStream.java (working copy) @@ -85,13 +85,6 @@ * @com.intel.drl.spec_ref */ public void flush() throws IOException { - out.flush(); - } - - /** - * @com.intel.drl.spec_ref - */ - public void close() throws IOException { byte[] result; try { result = cipher.doFinal(); @@ -102,10 +95,16 @@ throw new IOException(e.getMessage()); } catch (IllegalBlockSizeException e) { throw new IOException(e.getMessage()); - } finally { - out.flush(); - out.close(); } + out.flush(); + } + + /** + * @com.intel.drl.spec_ref + */ + public void close() throws IOException { + flush(); + out.close(); } }