Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native image FileSystem should not be closed after classpath scanning #29397

Closed
1 task done
sbrannen opened this issue Oct 28, 2022 · 0 comments
Closed
1 task done

Native image FileSystem should not be closed after classpath scanning #29397

sbrannen opened this issue Oct 28, 2022 · 0 comments
Assignees
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

Comments

@sbrannen
Copy link
Member

sbrannen commented Oct 28, 2022

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 a ClosedFileSystemException since PathMatchingResourcePatternResolver explicitly closes the native image FileSystem that backs resource: resources.

Related Issues

Deliverables

  • Do not close the native image FileSystem after classpath scanning in PathMatchingResourcePatternResolver.
@sbrannen sbrannen added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) theme: aot An issue related to Ahead-of-time processing labels Oct 28, 2022
@sbrannen sbrannen added this to the 6.0.0-RC3 milestone Oct 28, 2022
@sbrannen sbrannen self-assigned this Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant