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

JDK-20 support #243

Open
mhjort opened this issue Jun 14, 2023 · 3 comments
Open

JDK-20 support #243

mhjort opened this issue Jun 14, 2023 · 3 comments

Comments

@mhjort
Copy link

mhjort commented Jun 14, 2023

Should this library support JDK-20? With JDK-19 everything works. However, when upgrading to JDK-20 I get following error:

Caused by: java.lang.ClassNotFoundException: jdk.incubator.foreign.MemoryAddress
@cnuernber
Copy link
Collaborator

yes it should - jdk-20 has same foreign iface as jdk-19 so I guess the system is loading the wrong bindings.

@sbenhaim
Copy link

In JDK 20, jdk.incubator.foreign.MemoryAddress has been moved to java.lang.foreign.MemorySegment.

https://www.jrebel.com/blog/java-20-features

@cnuernber
Copy link
Collaborator

JDK-20 changed the API again. I would rather wait for the next long term release than keep updating. If someone wants to take a crack at it you need to fix it in dtype-next. Here is a reasonable place to start.

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

No branches or pull requests

3 participants