Is java's `serialVersionUID` completely unnecessar...
# serialization
j
Is java's
serialVersionUID
completely unnecessary when saving to disk using serialization and then deserializing to a potentially modified class type later?
b
Nope, kotlinx.serialization ignores that completely
j
so if a class changes between serialization/deserialization this should be fine?
Additive changes
b
as long as new props are either nullable or have default values
j
great thank you!
e
depends on the format
in protobuf format, changes that do not preserve the tag numbers (e.g. re-ordering args without
@ProtoNumber
) will be incompatible
👍 1