What is the hash of a null-type attribute value?
Tom Zeller
tzeller at dragonacea.biz
Thu Nov 7 13:36:14 EST 2019
> On reflection, even if it could be demonstrated that what is written to an object stream is formally specified I'd want to make this
> change since the existing code is fragile in the face of (API) changes in the future.
If we want to write a String instead of an Enum to avoid Java API
changes, how about
objectOutputStream.writeObject(EmptyType.NULL_VALUE.toString());
instead of
objectOutputStream.writeObject("NULLVALUE");
?
Or, just
objectOutputStream.writeObject(value.getNativeValue().toString())
should work too, I would think.
Tom
More information about the dev
mailing list