r/java • u/Shawn-Yang25 • Jun 16 '26
Apache Fory Serialization 1.2.0 released: JDK 25/26 support without sun.misc.Unsafe
https://github.com/apache/fory/releases/tag/v1.2.0
51
Upvotes
r/java • u/Shawn-Yang25 • Jun 16 '26
View all comments
Show parent comment
3
u/pron98 Jun 16 '26
Indeed. There cannot be safe serialization (in any library or language) for arbitrary classes. The only way to do it is either with custom code or a standard de/reconstruction protocol like the ones records have and will be extended to more classes. But there is no such thing as safe serialization that works universally on arbitrary classes.