XStream
  1. XStream
  2. XSTR-318

readResolve called twise before and after reading

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      1.4.2_10 for Windows

      Description

      If object implements readResolve() method it is called twise: once before the attributes are assigned and once after.
      This is different from Sun Serialization specification. The readResolve should be called only once after object is fully constructed and all values assigned.

      Here is the quote from Sun Serialization specification:
      "The readResolve method is not invoked on the object until the object is fully
      constructed"

        Issue Links

          People

          • Assignee:
            Unassigned
            Reporter:
            Dimitry Fayerman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: