changeset 23936:1a393ab5ec64

8040769: add a comment to the NewInstance test Reviewed-by: wetmore
author weijun
date Thu, 17 Apr 2014 09:48:21 +0800
parents 4daeffbde72f
children e6bd52c03bc0
files jdk/test/java/security/Provider/NewInstance.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/test/java/security/Provider/NewInstance.java	Wed Apr 16 13:13:23 2014 -0700
+++ b/jdk/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;
                     }
                 }