Skip to content

ImportAware in BeanRegistrar is not supported for native image,throwing the following exception: java.io.FileNotFoundException: class path resource [Main.class] cannot be opened because it does not exist. #36242

@saber-wang

Description

@saber-wang

Cause:
The generated AOT code uses CachingMetadataReaderFactory to read class files from resource files, but these files are not available in the native image context.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: waiting-for-feedbackWe need additional information before we can continuestatus: waiting-for-triageAn issue we've not yet triaged or decided on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions