Browse Source

Attempt to fix NestedJarFile file lock issues on Windows

Update `NestedJarFile.close()` to call `super.close()` so that the outer
jar file is closed and files can hopefully be deleted on Windows.

See gh-37668
pull/37801/head
Phillip Webb 2 years ago
parent
commit
5da31aca46
  1. 1
      spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/NestedJarFile.java

1
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/NestedJarFile.java

@ -373,6 +373,7 @@ public class NestedJarFile extends JarFile { @@ -373,6 +373,7 @@ public class NestedJarFile extends JarFile {
@Override
public void close() throws IOException {
super.close();
if (this.closed) {
return;
}

Loading…
Cancel
Save