RFR: 8296734: JarVerifier:: mapSignersToCodeSource should cache in map [v2]
Weijun Wang
weijun at openjdk.org
Fri Nov 18 15:41:18 UTC 2022
On Fri, 18 Nov 2022 03:57:32 GMT, pandaapo <duke at openjdk.org> wrote:
>> The cache named `signerToCodeSource` in `JarVerifier` is never used now.
>
> pandaapo has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>
> - Remove some unused methods and refactor some reldated codes.
> - Merge branch 'master' into master-JDK-8296734
> - Make signerToCodeSource cache work.
src/java.base/share/classes/jdk/internal/access/JavaUtilJarAccess.java line 40:
> 38: public interface JavaUtilJarAccess {
> 39: public boolean jarFileHasClassPathAttribute(JarFile jar) throws IOException;
> 40: public Enumeration<JarEntry> entries2(JarFile jar);
I think `entries2` and `getManifestDigests` are also useless now.
-------------
PR: https://git.openjdk.org/jdk/pull/11072
More information about the security-dev
mailing list