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

Hint for resource pattern with leading slash is not applied in native image #29088

Closed
1 task done
sbrannen opened this issue Sep 6, 2022 · 0 comments
Closed
1 task done
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 Sep 6, 2022

Status Quo

If a ResourcePatternHint is created with a resource pattern with a leading slash, the hint will be registered and eventually converted to configuration for the GraalVM native image compiler.

However, such a resource pattern will be not be valid for GraalVM. Consequently, the registered resources will not be available within the compiled native image.

The fact that tests for such resource registration pass makes matters worse in that the registration and the tests are effectively silently ignored, leading to a false positive.

Deliverables

  • Prevent creation of a ResourcePatternHint with a pattern with a leading slash.
@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 Sep 6, 2022
@sbrannen sbrannen added this to the 6.0.0-M6 milestone Sep 6, 2022
@sbrannen sbrannen self-assigned this Sep 6, 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