On Thu, 11 Nov 2021 02:14:50 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

>> Hi all,
>> 
>> This patch addresses a regression introduced in JDK 15 via JDK-8242959 where 
>> you can no longer access a file entry contained within a Zip file when there 
>> is also a directory entry with the same name via ZipFile:getEntry(). 
>> 
>>  Once fixed, the behavior will be consistent with earlier JDK releases. 
>> 
>> Mach5 tiers 1-3 have been run without failure
>> 
>> Best
>> Lance
>
> src/java.base/share/classes/java/util/zip/ZipFile.java line 1642:
> 
>> 1640:                                 && entry.startsWith(name) &&
>> 1641:                                 entry.charAt(entryLen - 1) == '/') {
>> 1642:                             // Now check for a match with a trailing 
>> slash
> 
> Hello Lance,
> Is this a typo in that comment? Should it instead say "... without a trailing 
> slash"?

Hi Jaikiran,

The comment is correct

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

PR: https://git.openjdk.java.net/jdk/pull/6342

Reply via email to