mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
f31eb2dcf9
Prior to this commit, the following exception was thrown when using the PathMatchingResourcePatternResolver to scan for class path resources using the `classpath*:` prefix within a native image. com.oracle.svm.core.jdk.UnsupportedFeatureError: JRT file system is disabled com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:89) jdk.internal.module.SystemModuleFinders$SystemImage.reader(SystemModuleFinders.java:139) jdk.internal.module.SystemModuleFinders$ModuleContentSpliterator.<init>(SystemModuleFinders.java:527) jdk.internal.module.SystemModuleFinders$SystemModuleReader.list(SystemModuleFinders.java:502) org.springframework.core.io.support.PathMatchingResourcePatternResolver.lambda$findAllModulePathResources$6(PathMatchingResourcePatternResolver.java:819) This commit addresses this by not attempting to scan the module path when running in a GraalVM native image. Closes gh-29183