Object Serialization uses DataOutput.writeUTF to write String objects.
However, the specification currently limits the length of the
encoded string to 65535 bytes. Since the encoding is data dependent
that actual allowable length is (conservately) limited to ~21845.
Is is reasonable to devise a revision to the specification to encode
larger strings up to some specified limit?
However, the specification currently limits the length of the
encoded string to 65535 bytes. Since the encoding is data dependent
that actual allowable length is (conservately) limited to ~21845.
Is is reasonable to devise a revision to the specification to encode
larger strings up to some specified limit?
- duplicates
-
JDK-4126854 Strings of 64K or larger cannot be marshalled due to DataOuptut.writeUTF() limit
- Closed
- relates to
-
JDK-4025564 ObjectInputStream.readObject() failures when size of Object
- Closed
-
JDK-1238815 writeUTF on a very long string will write incorrect length
- Closed
-
JDK-4217676 should be able to serialize strings > 64K
- Resolved