Details
-
Type: Bug
-
Status: Closed
-
Priority: 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.
Improved patch that used multi-part read/writeUTF rather than String.getBytes().