-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
RuntimeHintsUtils#registerAnnotation fails to register SynthesizedAnnotation proxy #28767
Comments
That's to be expected. If |
One concrete example is In summary, this effectively "works as designed", but I'll leave it open in order for the team to put more thought into it and potentially to improve the documentation to point out what I explained above. |
Ah, I see. Thanks for the explanation. |
When I register |
Ahhh... then that's likely a bug. We'll look into it. |
I've encountered a use-case in which
RuntimeHintsUtils.registerAnnotation
isn't enough to work with the annotation in a native setting. I'm using this code:where
Endpoint
isorg.springframework.boot.actuate.endpoint.annotation.Endpoint
:There are no
@AliasFor
annotations used, soRuntimeHintsUtils.registerAnnotation
won't register a proxy forEndpoint
andSynthesizedAnnotation
.But if
Endpoint
is now used in this code:it fails with
It seems like
@AliasFor
isn't the only thing which should trigger proxy creation.At the moment I'm working around this with:
The text was updated successfully, but these errors were encountered: