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

chore: Add @nowarn annotation to LazyVals. #22270

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

He-Pin
Copy link

@He-Pin He-Pin commented Dec 30, 2024

Unsafe is planned to be removed in future Java versions.

Motivication:

Makes it compile on JDK 23
refs: https://openjdk.org/jeps/471

Modification:
Add @nowarn("cat=deprecation")

Result:
Compiles successfully on JDK 23

Unsafe is planed to be removed in future  Java version.
Copy link
Contributor

@som-snytt som-snytt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-core contributors may be more likely to keep their JDKs fresh.

@som-snytt
Copy link
Contributor

Not sure if dotty has the "nowarn suppresses no warnings" lint, but it would be nice to ensure clean compilation across JDK versions.

Also not sure whether dotty exploits newer API or if releases are built under the --java-output-version-flag whatever that is called; or whether CI building under JDK 8 is relied upon.

@He-Pin
Copy link
Author

He-Pin commented Dec 30, 2024

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.

2 participants