Automatically register directories for registered resource hints #29403
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
Milestone
Overview
When a hint such as
graphql/*.*
is registered for resources that are looked up via classpath scanning using a pattern such asclasspath*:graphql/**/*.graphqls
, an appropriate pattern is in fact registered in the generatedresource-config.json
file for GraalVM native images; however, classpath scanning fails since GraalVM currently does not make thegraphql
directory automatically available as a classpath resource.This can be very confusing and cumbersome for users since a file such as
graphql/schema.graphqls
will not be discovered via classpath scanning even though the file is present in the native image filesystem.To address this, we should automatically register resource hints for enclosing directories for a registered pattern.
If the GraalVM team later decides to perform automatic directory registration, we can then remove the code introduced in conjunction with this issue.
Related Issues
The text was updated successfully, but these errors were encountered: