logo       

[xstream-dev] [jira] Updated: (XSTR-92) No treatment of specialized seriali: msg#00023

java.xstream.devel

Subject: [xstream-dev] [jira] Updated: (XSTR-92) No treatment of specialized serialization

The following issue has been updated:

Updater: Joe Walnes (mailto:joe-xGvoirzvwgBWk0Htik3J/w@xxxxxxxxxxxxxxxx)
Date: Sun, 25 Jul 2004 8:24 AM
Changes:
Fix Version changed to 1.0.3
---------------------------------------------------------------------
For a full history of the issue, see:

http://jira.codehaus.org/browse/XSTR-92?page=history

---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/XSTR-92

Here is an overview of the issue:
---------------------------------------------------------------------
Key: XSTR-92
Summary: No treatment of specialized serialization
Type: Bug

Status: Unassigned
Priority: Critical

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: XStream
Components:
Core
Fix Fors:
1.0.3
Versions:
1.0.1

Assignee:
Reporter: Andreas Rummler

Created: Thu, 24 Jun 2004 3:48 AM
Updated: Sun, 25 Jul 2004 8:24 AM
Environment: all

Description:
Java classes may define a specialized serialization (see JavaDoc for
Serializable) by defining two methods:

private void writeObject(ObjectOutputStream out) throws IOException
private void readObject(ObjectInputStream in) throws IOException

XStream is not capable of handling these cases.

A simple usecase:

public class SpecialClass {
protected transient String[] array = ...
private void writeObject( ObjectOutputStream out ) {
// do something special with "array" here (i.e. encrpyt it)
// and write to "out"
}
}

XStream does not look at "array" because it's transient, but does also not
treat writeObject(), so a serialized object of SpecialClass will be empty.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise