Skip to content

Commit 4d6947d

Browse files
committed
Merge branch '6.2.x'
2 parents 8df2110 + bbb593d commit 4d6947d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,9 @@ protected Set<Resource> doFindPathMatchingJarResources(Resource rootDirResource,
840840
rootEntryPath = (jarEntry != null ? jarEntry.getName() : "");
841841
closeJarFile = !jarCon.getUseCaches();
842842
}
843-
catch (FileNotFoundException ex) {
844-
// Happens in case of cached root directory without specific subdirectory present.
843+
catch (ZipException | FileNotFoundException ex) {
844+
// Happens in case of a non-jar file or in case of a cached root directory
845+
// without specific subdirectory present, respectively.
845846
return Collections.emptySet();
846847
}
847848
}

0 commit comments

Comments
 (0)