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

JEP 471 warning: "sun.misc.Unsafe::objectFieldOffset has been called by scala.runtime.LazyVals$" #22120

Closed
plokhotnyuk opened this issue Dec 3, 2024 · 1 comment
Labels
stat:needs triage Every issue needs to have an "area" and "itype" label

Comments

@plokhotnyuk
Copy link

plokhotnyuk commented Dec 3, 2024

Compiler version

Reproduces with:
3.3.1
3.4.1
3.5.1
3.6.1

Minimized example

lazy val v = ""

Output

When running on the latest JDK-24-dev (or on JDK-23+ with --sun-misc-unsafe-memory-access=deny)

WARNING: Please consider reporting this to the maintainers of class scala.runtime.LazyVals$
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by scala.runtime.LazyVals$

Expectation

No warnings

@plokhotnyuk plokhotnyuk added the stat:needs triage Every issue needs to have an "area" and "itype" label label Dec 3, 2024
@plokhotnyuk
Copy link
Author

plokhotnyuk commented Dec 4, 2024

@som-snytt Thanks for your feedback!

I have updated a list of Scala versions were I reproduced this issue.

Also, it looks that any code can reproduce the issue, even val v = "".

And, it seems a duplication of #9013

@SethTisue SethTisue closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:needs triage Every issue needs to have an "area" and "itype" label
Projects
None yet
Development

No branches or pull requests

2 participants