RFR 7191662: JCE providers should be located via ServiceLoader

Alan Bateman Alan.Bateman at oracle.com
Thu May 28 11:35:06 UTC 2015


On 27/05/2015 23:42, Mandy Chung wrote:
> Valerie,
>
> Did you see my comment yesterday?
>     http://mail.openjdk.java.net/pipermail/security-dev/2015-May/012254.html
>
> Since you have reverted the java.security to keep the classname, to avoid causing merge conflict to jimage refresh, let’s remove the META-INF files in the first push and the build change.
>
> The security providers will be loaded via the fallback mechanism (i.e. ProviderLoader.legacyLoad method).  You should keep the ProviderLoader.load method to take the provider name instead of classname.
>
> I’ll file a bug to follow up to change java.security to list the provider name.  This will wait after the jimage refresh goes into jdk9/dev.
>
I think that's the best approach and this will also allow the temporary 
image build tool to be updated to merge the configuration files.

-Alan


More information about the security-dev mailing list