Native image FileSystem should not be closed after classpath scanning #29397
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
Overview
As can be seen in a modified version of https://github.com/joshlong/spring-boot-3-aot-graphql, attempting to access a resource discovered via classpath scanning within a GraalVM native image -- for example via
Files.exists(...)
-- currently results in aClosedFileSystemException
sincePathMatchingResourcePatternResolver
explicitly closes the native imageFileSystem
that backsresource:
resources.Related Issues
Deliverables
FileSystem
after classpath scanning inPathMatchingResourcePatternResolver
.The text was updated successfully, but these errors were encountered: