8208754: The fix for JDK-8194534 needs updates

Reviewed-by: alanb, igerasim, rhalade, mullan
This commit is contained in:
Weijun Wang 2018-08-08 08:05:43 +08:00
parent 1c4396ebae
commit 61d19ee892
5 changed files with 13 additions and 3 deletions

View file

@ -866,8 +866,10 @@ public class URLClassPath {
{ return jar.getInputStream(entry); }
public int getContentLength()
{ return (int)entry.getSize(); }
public Manifest getManifest() throws IOException
{ return jar.getManifest(); };
public Manifest getManifest() throws IOException {
SharedSecrets.javaUtilJarAccess().ensureInitialization(jar);
return jar.getManifest();
}
public Certificate[] getCertificates()
{ return entry.getCertificates(); };
public CodeSigner[] getCodeSigners()