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?

            Assignee:
            Mark Reinhold
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: