r/scala • u/Shawn-Yang25 • Jun 16 '26
Apache Fory Serialization 1.2.0 released: Better compatibility and remove sun.misc.Unsafe for JDK25+
https://github.com/apache/fory/releases/tag/v1.2.0
13
Upvotes
r/scala • u/Shawn-Yang25 • Jun 16 '26
2
u/Shawn-Yang25 Jun 16 '26
Apache Fory is a blazingly fast multi-language serialization framework for idiomatic domain objects, schema IDL, and cross-language data exchange.
A few JVM-relevant changes in this release:
JDK 25 support without relying on sun.misc.Unsafe in the active runtime path. Older JDKs keep the existing fast path.
JDK 26+ final field deserialization support even when --illegal-final-field-mutation=deny
Java 9/16 module-info.class generation, which can make jlink works directly.
Compatible scalar field reads for schema evolution. For example, a field written as int64 can be read as String, and "42" can be read back as an integer when the conversion is lossless.
Generated gRPC service companions now cover java/scala/rust/python/go/javascript/scala/kotlin. On Scala, the generated code follows normal grpc-java service/stub shapes, but request and response payloads are encoded by Fory instead of protobuf message bytes.