Java Serialization and the Eclipse-JDT compiler

Categories: Java

I recently published an article about the Java serialization serialVersionUID property and why defining it statically is generally a bad idea.

However there is one case that causes problems: the same source compiled with different compilers (in particular, Oracle’s javac compiler and the Eclipse jdt compiler) can occasionally generate incompatible classes. See Java Serialization and Synthetic Methods for more information.

comments powered by Disqus