author | weijun |
Thu, 17 Apr 2014 09:48:21 +0800 | |
changeset 23936 | 1a393ab5ec64 |
parent 23935 | 4daeffbde72f |
child 23937 | e6bd52c03bc0 |
--- 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; } }