Skip to content

Commit d5e667f

Browse files
Merge pull request #22035 from dreis2211
* gh-22035: Catch more generic FileSystemException in NamedPipeSocket Closes gh-22035
2 parents f961043 + a6e8561 commit d5e667f

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/socket

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/socket/NamedPipeSocket.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import java.nio.channels.AsynchronousFileChannel;
2727
import java.nio.channels.Channels;
2828
import java.nio.channels.CompletionHandler;
29-
import java.nio.file.NoSuchFileException;
29+
import java.nio.file.FileSystemException;
3030
import java.nio.file.Paths;
3131
import java.nio.file.StandardOpenOption;
3232
import java.util.concurrent.CompletableFuture;
@@ -64,7 +64,7 @@ private AsynchronousFileByteChannel open(String path) throws IOException {
6464
return new AsynchronousFileByteChannel(AsynchronousFileChannel.open(Paths.get(path),
6565
StandardOpenOption.READ, StandardOpenOption.WRITE));
6666
}
67-
catch (NoSuchFileException ex) {
67+
catch (FileSystemException ex) {
6868
if (System.nanoTime() - startTime >= TIMEOUT) {
6969
throw ex;
7070
}

0 commit comments

Comments
 (0)