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

Fix sharing of annotation class value loading between introspection and its ref #6289

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

jameskleeh
Copy link
Contributor

Issue was introduced by #6217

The loadTypeMethods variable was not cleared between writing the introspection and the ref and thus if both the ref and the introspection needed to load the same class the method would only be written to the ref, but attempt to be called from the introspection.

I think ideally we could only have the methods written to the ref, however the current code is not setup for that type of thing at all as far as I can tell. The result is that if both are loading the same class the load method will be duplicated in both classes.

@jameskleeh jameskleeh merged commit 73ce6cc into 3.1.x Oct 6, 2021
@jameskleeh jameskleeh deleted the introspection_load_class branch October 6, 2021 20:25
@jameskleeh jameskleeh added this to the 3.1.0 milestone Oct 6, 2021
@jameskleeh jameskleeh added the type: bug Something isn't working label Oct 6, 2021
@jameskleeh jameskleeh added this to In progress in Micronaut Developers Work Coordination via automation Oct 6, 2021
@jameskleeh jameskleeh moved this from In progress to Done in Micronaut Developers Work Coordination Oct 6, 2021
@jameskleeh jameskleeh self-assigned this Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Development

Successfully merging this pull request may close these issues.

None yet

2 participants