XStream
  1. XStream
  2. XSTR-93

Reserialized String not equal in

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Fuller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: