Hint for resource pattern with leading slash is not applied in native image #29088
Closed
1 task done
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
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
ResourcePatternHint
with a pattern with a leading slash.The text was updated successfully, but these errors were encountered: