Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1238815

writeUTF on a very long string will write incorrect length

XMLWordPrintable

    • sparc
    • solaris_1

      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?

            mr Mark Reinhold
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: