Shall we regard it as a bug that if you give a string to writeUTF
and its UTF length turns out to be > 65535, the writeUTF blithely
writes UTF data with an incorrect length (truncated to 16 bits)?
The easiest fix is that if the UTF length turns out to be > 65535,
then writeuTF should throw a UTFDataFormatException?
and its UTF length turns out to be > 65535, the writeUTF blithely
writes UTF data with an incorrect length (truncated to 16 bits)?
The easiest fix is that if the UTF length turns out to be > 65535,
then writeuTF should throw a UTFDataFormatException?
- duplicates
-
JDK-4026823 writeUTF OutputStream doesn't throw an exception when encoding > 65536
- Closed
- relates to
-
JDK-4128333 Data{Input,Output}Stream UTF strings restricted to 65536 encoded bytes
- Open