-
Bug
-
Resolution: Fixed
-
P3
-
7, 7u25, 8
-
b48
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084431 | emb-9 | Xueming Shen | P3 | Resolved | Fixed | team |
JDK-8257094 | openjdk8u282 | Xueming Shen | P3 | Resolved | Fixed | b04 |
JDK-8254087 | 8u281 | Xueming Shen | P3 | Resolved | Fixed | b02 |
JDK-8257335 | emb-8u281 | Xueming Shen | P3 | Resolved | Fixed | team |
public final class Jsr203ZipBug
{
public static void main(final String... args)
throws IOException
{
final Path zipPath
= Paths.get(System.getProperty("java.io.tmpdir"), "t.zip");
Files.deleteIfExists(zipPath);
final URI uri = URI.create("jar:" + zipPath.toUri());
final Map<String, ?> env = Collections.singletonMap("create", "true");
try (
final FileSystem zipfs = FileSystems.newFileSystem(uri, env);
final OutputStream out
= Files.newOutputStream(zipfs.getPath("/foo"));
) {
out.write("hello".getBytes());
out.close();
}
}
}
{
public static void main(final String... args)
throws IOException
{
final Path zipPath
= Paths.get(System.getProperty("java.io.tmpdir"), "t.zip");
Files.deleteIfExists(zipPath);
final URI uri = URI.create("jar:" + zipPath.toUri());
final Map<String, ?> env = Collections.singletonMap("create", "true");
try (
final FileSystem zipfs = FileSystems.newFileSystem(uri, env);
final OutputStream out
= Files.newOutputStream(zipfs.getPath("/foo"));
) {
out.write("hello".getBytes());
out.close();
}
}
}
- backported by
-
JDK-8084431 (zipfs) ZipFileSystem creates corrupted zip if entry output stream gets closed more than once
- Resolved
-
JDK-8254087 (zipfs) ZipFileSystem creates corrupted zip if entry output stream gets closed more than once
- Resolved
-
JDK-8257094 (zipfs) ZipFileSystem creates corrupted zip if entry output stream gets closed more than once
- Resolved
-
JDK-8257335 (zipfs) ZipFileSystem creates corrupted zip if entry output stream gets closed more than once
- Resolved
- duplicates
-
JDK-8249188 (zipfs) Empty zip file entries after using Files#write against ZipFileSystem
- Closed