8157469: DefaultProviderList.java fails with no provider class apple.security.AppleProvider found
Reviewed-by: valeriep
This commit is contained in:
parent
4045a8be07
commit
1a2c01a37c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -23,13 +23,16 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
* @bug 7191662
|
* @bug 7191662 8157469
|
||||||
* @summary Ensure non-java.base providers can be found by ServiceLoader
|
* @summary Ensure non-java.base providers can be found by ServiceLoader
|
||||||
* @author Valerie Peng
|
* @author Valerie Peng
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.util.*;
|
import java.security.Provider;
|
||||||
import java.security.*;
|
import java.security.Security;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.ServiceLoader;
|
||||||
|
|
||||||
public class DefaultProviderList {
|
public class DefaultProviderList {
|
||||||
|
|
||||||
@ -44,7 +47,8 @@ public class DefaultProviderList {
|
|||||||
String pName = p.getName();
|
String pName = p.getName();
|
||||||
// only providers outside java.base are loaded by ServiceLoader
|
// only providers outside java.base are loaded by ServiceLoader
|
||||||
if (pName.equals("SUN") || pName.equals("SunRsaSign") ||
|
if (pName.equals("SUN") || pName.equals("SunRsaSign") ||
|
||||||
pName.equals("SunJCE") || pName.equals("SunJSSE")) {
|
pName.equals("SunJCE") || pName.equals("SunJSSE") ||
|
||||||
|
pName.equals("Apple")) {
|
||||||
System.out.println("Skip test for provider " + pName);
|
System.out.println("Skip test for provider " + pName);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user