Strings cannot be serialized or marshalled if their UTF8 representation
will be 65536 bytes or larger in size. This is a restriction imposed by
the 16-bit length field used by DataOutputStream.writeUTF(), and documented
there.
This might have been a DataOutputStream bug, but there's not much that can
be done there without breaking backwards compatibility, whereas we can workaround
it in serialization, probably.
will be 65536 bytes or larger in size. This is a restriction imposed by
the 16-bit length field used by DataOutputStream.writeUTF(), and documented
there.
This might have been a DataOutputStream bug, but there's not much that can
be done there without breaking backwards compatibility, whereas we can workaround
it in serialization, probably.
- duplicates
-
JDK-4128333 Data{Input,Output}Stream UTF strings restricted to 65536 encoded bytes
-
- Open
-