RFR: 8251329: (zipfs) Files.walkFileTree walks infinitely if zip has dir named "." inside [v2]
Jaikiran Pai
jpai at openjdk.java.net
Thu Jul 1 13:25:37 UTC 2021
On Thu, 1 Jul 2021 13:05:26 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>>
>> implement review suggestion - move isSelfOrParent to ZipPath class
>
> src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java line 1971:
>
>> 1969: }
>> 1970: return false;
>> 1971: }
>
> It might be a bit clearer if ZipPath define isSelfOrParent(), that would avoid needing to expose the internal representation.
Done. I've updated the PR to implement this suggestion.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4604
More information about the nio-dev
mailing list