< prev index next >

test/sun/security/pkcs11/PKCS11Test.java

Print this page

        

*** 45,54 **** --- 45,55 ---- import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properties; + import java.util.ServiceConfigurationError; import java.util.ServiceLoader; import java.util.Set; public abstract class PKCS11Test {
*** 110,120 **** p = iter.next(); if (p.getName().equals("SunPKCS11")) { found = true; break; } ! } catch (Exception e) { // ignore and move on to the next one } } // Nothing found through ServiceLoader; fall back to reflection if (!found) { --- 111,121 ---- p = iter.next(); if (p.getName().equals("SunPKCS11")) { found = true; break; } ! } catch (Exception | ServiceConfigurationError e) { // ignore and move on to the next one } } // Nothing found through ServiceLoader; fall back to reflection if (!found) {
< prev index next >