Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.1.1
-
Component/s: None
-
Labels:None
Description
The following test fails with version 1.0.1, and the snapshot.jar from the download page:
public void testSlashRSlashSlashSlashN(){
StringBuffer sb = new StringBuffer().append('\r').append('\\').append('\n');
XStream xstream = new XStream();
String before = sb.toString();
String xml = xstream.toXML(before);
String after = (String)xstream.fromXML(xml);
assertEquals("strings don't match",before,after);
}
Issue Links
- is duplicated by
-
XSTR-120 Carriage returns lost
Fixed in latest snapshot. http://dist.codehaus.org/xstream/jars/xstream-SNAPSHOT.jar