< prev index next >
test/compiler/codegen/aes/TestAESEncode.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
@@ -20,16 +20,17 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
-/**
- * @author Tom Deneau
- */
+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,16 +46,14 @@
cipher.doFinal(input, encInputOffset, msgSize, encode, encOutputOffset);
}
if (checkOutput) {
compareArrays(encode, expectedEncode);
}
+ } catch (Exception e) {
+ throw new Error(e.getMessage(), e);
}
- catch (Exception e) {
- e.printStackTrace();
- System.exit(1);
}
- }
@Override
void childShowCipher() {
showCipher(cipher, "Encryption");
}
< prev index next >