Duplicate :
|
|
Relates :
|
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?
|