commit | b061fc2bb5b6e8397c7f3a40be521badad91e9af | [log] [tgz] |
---|---|---|
author | Tomasz Mikolajewski <mtomasz@google.com> | Tue Dec 06 10:05:05 2016 +0900 |
committer | Tomasz Mikolajewski <mtomasz@google.com> | Tue Dec 06 10:05:05 2016 +0900 |
tree | a269d368a1612f165bfbf518d002c31f350aa56c | |
parent | 19fc36fa336c65405f88dbcef907ecc0feace7e7 [diff] |
Fix crashing StrictJarFile due to doubled closing. If the constuctor throws, then the handles would be closed without setting "closed" to true. As a result, the finalizer would close the handles again, which would cause a crash on the native side. Test: Unit tests are no longer flaky. Bug: 33301253 Change-Id: I527ba38d5d65ce844258d894441d4fe16bac6e23