Skip to content

avoid this-escape by making some methods final #4755

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

Merged
merged 2 commits into from
Apr 14, 2025

Conversation

vladak
Copy link
Member

@vladak vladak commented Apr 14, 2025

This change makes the possible 'this' escape before subclass is fully initialized error message produced by newer Java versions (Java 24 in my case) go away by making some of the methods (that could be previously overriden by a sub-class) final.

Approaches #4459.

@vladak vladak added the build label Apr 14, 2025
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 14, 2025
@vladak vladak merged commit 11e2e0a into oracle:master Apr 14, 2025
10 checks passed
@vladak vladak deleted the this_escape branch April 14, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant