< prev index next >

test/compiler/codegen/aes/TestAESEncode.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

*** 20,35 **** * or visit www.oracle.com if you need additional information or have any * questions. * */ ! /** ! * @author Tom Deneau ! */ import javax.crypto.Cipher; public class TestAESEncode extends TestAESBase { @Override public void run() { try { if (mode.equals("GCM")) { --- 20,36 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ ! package compiler.codegen.aes; import javax.crypto.Cipher; + /** + * @author Tom Deneau + */ public class TestAESEncode extends TestAESBase { @Override public void run() { try { if (mode.equals("GCM")) {
*** 45,60 **** cipher.doFinal(input, encInputOffset, msgSize, encode, encOutputOffset); } if (checkOutput) { compareArrays(encode, expectedEncode); } } - catch (Exception e) { - e.printStackTrace(); - System.exit(1); } - } @Override void childShowCipher() { showCipher(cipher, "Encryption"); } --- 46,59 ---- cipher.doFinal(input, encInputOffset, msgSize, encode, encOutputOffset); } if (checkOutput) { compareArrays(encode, expectedEncode); } + } catch (Exception e) { + throw new Error(e.getMessage(), e); } } @Override void childShowCipher() { showCipher(cipher, "Encryption"); }
< prev index next >