Skip to content

LazyVal is using deprecated staticFieldOffset #18060

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

Closed
He-Pin opened this issue Jun 26, 2023 · 4 comments
Closed

LazyVal is using deprecated staticFieldOffset #18060

He-Pin opened this issue Jun 26, 2023 · 4 comments

Comments

@He-Pin
Copy link
Contributor

He-Pin commented Jun 26, 2023

Which should be replaced with VarHandle.

@He-Pin He-Pin added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels Jun 26, 2023
@odersky
Copy link
Contributor

odersky commented Jun 26, 2023

Not sure we can do that as long as we still allow builds Java 8?

@odersky odersky added stat:needs info area:transform and removed stat:needs triage Every issue needs to have an "area" and "itype" label itype:bug labels Jun 26, 2023
@He-Pin
Copy link
Contributor Author

He-Pin commented Jun 26, 2023

Start jdk 18, this method is deprecated.

@szymon-rd
Copy link
Contributor

There is this issue already: #15387. We cannot get rid of Unsafe, as we support Java 8. We can utilize the -release flag and use VarHandle when java platform version > 8.

@odersky
Copy link
Contributor

odersky commented Jun 26, 2023

Closing as duplicate then.

@odersky odersky closed this as completed Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants