XStream
  1. XStream
  2. XSTR-583

XStream Binary IO doesn't support Strings with length greater than 65K

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      Sun 1.6.0_14 for Windows, Apple 1.6.0_13 for OS X

      Description

      Due to the BInary IO using readUTF() and writeUTF() long strings (such as embedded XML documents) can't be written and read back.

      I've attached a patch which updates com.thoughtworks.xstream.io.binary.Token and it's test.

      This fix may not be as robust as read/writeUTF as it just uses String.getBytes(). So there may be a better way to do this, however it worked fine for my test cases.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Alex Radeski
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: