Skip to content

Commit 5f6fe61

Browse files
Improve jar resources' release robustness
Fixes: quarkusio#34601
1 parent de112b9 commit 5f6fe61

File tree

1 file changed

+2
-2
lines changed
  • independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner

1 file changed

+2
-2
lines changed

independent-projects/bootstrap/runner/src/main/java/io/quarkus/bootstrap/runner/JarResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ public void close() {
184184
final JarFile zipFileLocal = this.zipFile;
185185
if (zipFileLocal != null) {
186186
try {
187+
this.zipFile = null;
187188
zipFileLocal.close();
188-
} catch (IOException e) {
189+
} catch (Throwable e) {
189190
//ignore
190191
}
191-
this.zipFile = null;
192192
}
193193
} finally {
194194
writeLock.unlock();

0 commit comments

Comments
 (0)