
| Key: |
XSTR-243
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Assignee: |
Unassigned
|
| Reporter: |
Simon Lei
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
XStream
Created: 19/Sep/05 09:28 AM
Updated: 24/May/07 12:38 AM
|
|
| Component/s: |
None
|
| Affects Version/s: |
None
|
| Fix Version/s: |
1.2.2
|
|
|
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"
|
|
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"
|
Show » |
|