File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
spring-core/src/main/java/org/springframework/core/io/support Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,11 @@ protected void addClassPathManifestEntries(Set<Resource> result) {
424424 javaClassPathProperty , System .getProperty ("path.separator" ))) {
425425 try {
426426 String filePath = new File (path ).getAbsolutePath ();
427+ int prefixIndex = filePath .indexOf (':' );
428+ if (prefixIndex == 1 ) {
429+ // Possibly "c:" drive prefix on Windows, to be upper-cased for proper duplicate detection
430+ filePath = filePath .substring (0 , 1 ).toUpperCase () + filePath .substring (1 );
431+ }
427432 UrlResource jarResource = new UrlResource (ResourceUtils .JAR_URL_PREFIX +
428433 ResourceUtils .FILE_URL_PREFIX + filePath + ResourceUtils .JAR_URL_SEPARATOR );
429434 // Potentially overlapping with URLClassLoader.getURLs() result above!
You can’t perform that action at this time.
0 commit comments