fast-serialization icon indicating copy to clipboard operation
fast-serialization copied to clipboard

Java 21 LTS java.lang.foreign

Open istinnstudio opened this issue 1 year ago • 2 comments

This is not a "real" issue, it is just a reminder that Java 21 LTS has changed the "preview" feature of the used memory API in branches 17 and 20. So we need a revision of source for Java 21 by using the finalized [java.lang.foreign] (https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/foreign/package-summary.html), hopefully RuedigerMoeller will do magic again and introduce an updated 21 source branch using the final Foreign Memory Access API, replacing the non existent jdk.incubator.foreign in 21 LTS. Also there is a naming conflict with janassist lib in FieldAccess at FSTStructFactory class.

istinnstudio avatar Dec 04 '23 18:12 istinnstudio

Do you know if there there is a way to get it working on Java 21 while waiting for the changes?

maximevdk-tidal avatar Dec 14 '23 15:12 maximevdk-tidal

Compiled sources with java17 should work just fine with 21, only latest source needs update, there has been significant changes on java.lang.foreign, so jdk17/20 branch source is not compatible with java21 for compile from source

istinnstudio avatar Dec 14 '23 18:12 istinnstudio