jdk/test/java/security/Provider/NewInstance.java
changeset 23936 1a393ab5ec64
parent 23926 ebade3f50c1f
equal deleted inserted replaced
23935:4daeffbde72f 23936:1a393ab5ec64
    51                     s.newInstance(null);
    51                     s.newInstance(null);
    52                 } catch (NoSuchAlgorithmException e) {
    52                 } catch (NoSuchAlgorithmException e) {
    53                     System.out.println("  check");
    53                     System.out.println("  check");
    54                     Throwable t = e.getCause();
    54                     Throwable t = e.getCause();
    55                     if (!(t instanceof InvalidAlgorithmParameterException)) {
    55                     if (!(t instanceof InvalidAlgorithmParameterException)) {
       
    56                         // Some engines require certain parameters to be
       
    57                         // present on creation. Calling newInstance(null) will
       
    58                         // trigger this exception and it's OK.
    56                         throw e;
    59                         throw e;
    57                     }
    60                     }
    58                 }
    61                 }
    59             }
    62             }
    60         }
    63         }