XStream
  1. XStream
  2. XSTR-243

Transient field is unmarshaled from an marshaled xml

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.2
    • Component/s: None
    • Labels:
      None

      Description

      A field is not transient when marshaled, then it
      is changed to transient, and the unmarshaled
      action will unserialize the field.

      For example:

      public class TryXstream {
      private String tmpFiled = "just a string";
      }

      It is marshaled into
      <org.simon.payment.TryXstream>
      <tmpFiled>just a string</tmpFiled>
      </org.simon.payment.TryXstream>

      and change the field to transient

      public class TryXstream {
      private transient String tmpFiled = "another string";
      }

      then unmarshal from the xml, the tmpField will be set to "just a string"

        People

        • Assignee:
          Unassigned
          Reporter:
          Simon Lei
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: