8040769: add a comment to the NewInstance test
authorweijun
Thu, 17 Apr 2014 09:48:21 +0800
changeset 23936 1a393ab5ec64
parent 23935 4daeffbde72f
child 23937 e6bd52c03bc0
8040769: add a comment to the NewInstance test Reviewed-by: wetmore
jdk/test/java/security/Provider/NewInstance.java
--- 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;
                     }
                 }