8193490: java/util/zip/ZipFile/ClearStaleZipFileInputStreams.java, FinalizeZipFile.java, TestCleaner.java, Collectible.java failed because cleaner can't finish

Reviewed-by: darcy
This commit is contained in:
Xueming Shen 2017-12-13 21:41:50 -08:00
parent a05689a09f
commit aeb50d6935
2 changed files with 2 additions and 23 deletions

View file

@ -427,12 +427,7 @@ class ZipFile implements ZipConstants, Closeable {
Inflater inf, int size) {
super(zfin, inf, size);
this.cleanable = CleanerFactory.cleaner().register(this,
new Runnable() {
@Override
public void run() {
res.releaseInflater(inf);
}
});
() -> res.releaseInflater(inf));
}
public void close() throws IOException {