Skip to content
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

Annotations on beans not propagated to their intercepted classes #10688

Open
mikehearn opened this issue Apr 5, 2024 · 0 comments
Open

Annotations on beans not propagated to their intercepted classes #10688

mikehearn opened this issue Apr 5, 2024 · 0 comments

Comments

@mikehearn
Copy link
Contributor

Expected Behavior

I have a config interface like this:

@ConfigurationProperties("...")
public interface ReactViewsRendererConfiguration {
    @NotBlank
    @Bindable(defaultValue = "/static/client.js")
    @HostAccess.Export
    String getClientBundleURL();
}

The @HostAccess.Export annotation is non-Micronaut but important and it must be found on the actual method being invoked, as the framework (GraalVM Polyglot) doesn't search implemented interfaces for it.

Unfortunately this annotation goes missing and isn't found on the generated implementation. It would be good if it was.

Actual Behaviour

The ...$Intercepted class implements the method without the annotation.

Steps To Reproduce

Compile the above test class and look at the generated ReactViewsRendererConfiguration$Intercepted class.

Environment Information

No response

Example Application

No response

Version

6.0.0-SNAPSHOT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant