RFR: 8317678: Fix up hashCode() for ZipFile.Source.Key

Alan Bateman alanb at openjdk.org
Tue Oct 10 08:56:57 UTC 2023


On Tue, 10 Oct 2023 08:32:28 GMT, Sean Coffey <coffeys at openjdk.org> wrote:

> Fix up java.util.zip.ZipFile$Source hashCode() impl so that duplicate Source objects aren't created for the same zip file.

This is really ZipFile.Source.Key hashCode/equals being inconsistent so I think we should rename the JBS/PR title to make that clearer.

Can you look at the equals method too, need to decide if the checking of lastModifiedTime should be removed.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16115#issuecomment-1754749106
PR Comment: https://git.openjdk.org/jdk/pull/16115#issuecomment-1754751022


More information about the core-libs-dev mailing list