changeset 14617:99edb4d85aba

Add reads edge for JarSigner to support altSigner
author mchung
date Mon, 30 Nov 2015 17:41:49 -0800
parents db40b83b1071
children c722f3d6e400
files src/jdk.jartool/share/classes/jdk/security/jarsigner/JarSigner.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jartool/share/classes/jdk/security/jarsigner/JarSigner.java	Mon Nov 30 14:57:58 2015 -0800
+++ b/src/jdk.jartool/share/classes/jdk/security/jarsigner/JarSigner.java	Mon Nov 30 17:41:49 2015 -0800
@@ -1095,6 +1095,7 @@
         try {
             // attempt to find signer
             Class<?> signerClass = appClassLoader.loadClass(signerClassName);
+            JarSigner.class.getModule().addReads(signerClass.getModule());
             Object signer = signerClass.newInstance();
             return (ContentSigner) signer;
         } catch (ClassNotFoundException|InstantiationException|