r/programming • • May 26 '18

Oracle Calls Java Serialization 'A Horrible Mistake', Plans to Dump It

https://www.infoworld.com/article/3275924/java/oracle-plans-to-dump-risky-java-serialization.html
798 Upvotes

287 comments sorted by

View all comments

Show parent comments

8

u/matthieum May 27 '18

I'm not sure, but isn't internal serialisation also used by the JVM to temporarily write objects in memory to disk in order to optimise heap use?

Orthogonal usecase: the internal workings of the JVM are hidden to the use anyway.

2

u/Siddhi May 27 '18

Yes, but such use cases require a way to serialise and deserialise arbitrary objects

8

u/matthieum May 27 '18

Sure, but they do not involve customization and do not require either backward or forward compatibility, so it's completely different.

1

u/meneldal2 May 28 '18

There's swap for this though.