hg: jdk9/dev/langtools: 8076104: Key collisions in ZipFileIndexFileObject content cache lead to wrong content

jan.lahoda at oracle.com jan.lahoda at oracle.com
Fri May 15 09:42:13 UTC 2015


Changeset: 8a2e31525a95
Author:    jlahoda
Date:      2015-05-15 11:41 +0200
URL:       http://hg.openjdk.java.net/jdk9/dev/langtools/rev/8a2e31525a95

8076104: Key collisions in ZipFileIndexFileObject content cache lead to wrong content
Summary: equals&hashCode of ZipFileObject and ZipFileIndexFileObject need to be based on full entry path, not only the file name.
Reviewed-by: jjg

! src/jdk.compiler/share/classes/com/sun/tools/javac/file/ZipArchive.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/file/ZipFileIndexArchive.java
+ test/tools/javac/file/zip/T8076104.java



More information about the jdk9-dev-changes mailing list