XStream
  1. XStream
  2. XSTR-580

Serialization of a write replaced object with field reference to itself does not work

    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

      Description

      I have a class "NodeProxy" (see below) using "writeReplace" to serialize as class "Node" (see below). The new object contains a field referencing to itself. When instance of "NodeProxy" is serialized to XML using XStream it reports "Cannot reference implicit element".

      Reproducing code is attached.

        Issue Links

          People

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

            Dates

            • Created:
              Updated:
              Resolved: