-
Bug
-
Resolution: Fixed
-
P3
-
12
-
b14
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8231234 | 11.0.6 | Xueming Shen | P3 | Resolved | Fixed | b01 |
Files.newDirectortyStream specifies "The Path objects are obtained as if by resolving the name of the directory entry against dir". If the path to the directory is a relative path then the Path objects created for the entries in the directory should also be relative. The zip file system provider doesn't implement this correctly, e.g.
Path dir = zipfs.getPath("META-INF");
Files.list(dir).forEach(System.out::println)
will print absolute paths (/META-INF/MANIFEST.MF for example) when it should print relative paths.
Path dir = zipfs.getPath("META-INF");
Files.list(dir).forEach(System.out::println)
will print absolute paths (/META-INF/MANIFEST.MF for example) when it should print relative paths.
- backported by
-
JDK-8231234 (zipfs) ZipDirectoryStream yields a stream of absolute paths when directory is relative
-
- Resolved
-
- relates to
-
JDK-8211919 (zipfs) ZipDirectoryStream should provide a stream of paths that are relative to the directory
-
- Closed
-