changeset 9769:d993a3fc9b19

8040769: add a comment to the NewInstance test Reviewed-by: wetmore
author weijun
date Thu, 17 Apr 2014 09:48:21 +0800
parents efaa9de464e0
children e0da79da3689
files test/java/security/Provider/NewInstance.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/security/Provider/NewInstance.java	Wed Apr 16 13:13:23 2014 -0700
+++ b/test/java/security/Provider/NewInstance.java	Thu Apr 17 09:48:21 2014 +0800
@@ -53,6 +53,9 @@
                     System.out.println("  check");
                     Throwable t = e.getCause();
                     if (!(t instanceof InvalidAlgorithmParameterException)) {
+                        // Some engines require certain parameters to be
+                        // present on creation. Calling newInstance(null) will
+                        // trigger this exception and it's OK.
                         throw e;
                     }
                 }