< prev index next >

test/compiler/codegen/aes/TestAESDecode.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 TestAESDecode extends TestAESBase {
   @Override
   public void run() {
     try {
       if (mode.equals("GCM")) {

@@ -45,18 +46,15 @@
         dCipher.doFinal(encode, encOutputOffset, decodeMsgSize, decode, decOutputOffset);
       }
       if (checkOutput) {
         compareArrays(decode, expectedDecode);
       }
+        } catch (Exception e) {
+            throw new Error(e.getMessage(), e);
     }
-    catch (Exception e) {
-      e.printStackTrace();
-      System.exit(1);
     }
-  }
 
   @Override
   void childShowCipher() {
     showCipher(dCipher, "Decryption");
   }
-
 }
< prev index next >