Introduce a way to indicate that an annotation needs to be visible at runtime #28470
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
Uh oh!
There was an error while loading. Please reload this page.
In a native image, an annotation will have no attributes until a dedicated hint is added, i.e.
Without the above, the
value
attribute of Order is not available. Creating a process that handles allorg.springframework
annotations comes to mind, but there are a number of annotations that are build specific and should not be included. This includes anything configuration-class parsing related (such as@Configuration
,@Bean
, etc) and anything that has an explicit AOT handling that makes the annotation irrelevant at runtime.Two ways comes to mind:
The text was updated successfully, but these errors were encountered: