Skip to content

Commit 2e208e6

Browse files
authored
Merge pull request #2731 from harawata/jpms-file-system-exception
Adding mapper could fail under JPMS
2 parents afc439a + ced7973 commit 2e208e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/apache/ibatis/io/DefaultVFS.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.net.URL;
2727
import java.net.URLEncoder;
2828
import java.nio.charset.StandardCharsets;
29+
import java.nio.file.FileSystemException;
2930
import java.nio.file.InvalidPathException;
3031
import java.util.ArrayList;
3132
import java.util.Arrays;
@@ -107,8 +108,8 @@ public List<String> list(URL url, String path) throws IOException {
107108
break;
108109
}
109110
}
110-
} catch (InvalidPathException e) {
111-
// #1974
111+
} catch (InvalidPathException | FileSystemException e) {
112+
// #1974 #2598
112113
lines.clear();
113114
}
114115
if (!lines.isEmpty()) {

0 commit comments

Comments
 (0)