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

Strings of 64K or larger cannot be marshalled due to DataOuptut.writeUTF() limit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • None
    • generic
    • generic

      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.

            mr Mark Reinhold
            acolleysunw Adrian Colley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: