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

[GR-58239] Enforce that substitution target classes are static when they are inner classes. #9733

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

graalvmbot
Copy link
Collaborator

@TargetClass annotated target classes must not be non-static inner classes, because the reference to the outer-class instance is a synthetic field in such inner classes and can cause problems.

I also played around with disallowing inner classes completely, but that would be a too intrusive change. We have several inner target classes ourselfs, and external libraries might have them too. There is no need to break them.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 23, 2024
@graalvmbot graalvmbot closed this Sep 27, 2024
@graalvmbot graalvmbot deleted the cwi/GR-58239-target-class branch September 27, 2024 19:50
@graalvmbot graalvmbot merged commit 8e1efc3 into master Sep 27, 2024
143 of 149 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants