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

Remove outer type reference when marking class as static #3789

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Rawi01
Copy link
Collaborator

@Rawi01 Rawi01 commented Nov 24, 2024

This PR fixes #3605

I also added an additional build job to our actions to run the compilation for different java version.

…lass as static

The class now implements Serializable to trigger generation of this$0
fields in the inner class. Since Java 18 the compiler only generates the
reference to the outer class if it is in use or the class is
Serializable.
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

Successfully merging this pull request may close these issues.

[BUG] NPE in Java Compiler when using Java 21 and compiling for Java 17
1 participant