# HG changeset patch # User weijun # Date 1397699301 -28800 # Node ID 1a393ab5ec6458efde248acfe29bced9e4d226f1 # Parent 4daeffbde72f094f139cc695d178e2525f5d8303 8040769: add a comment to the NewInstance test Reviewed-by: wetmore diff -r 4daeffbde72f -r 1a393ab5ec64 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; } }