bugDotGNU Portable.NET - Bugs: bug #14007, XML Serialization doesn't...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14007: XML Serialization doesn't serialize inherited fields

Submitter:  Peter Flaig <fliege>
Submitted:  Mon 01 Aug 2005 02:56:02 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  t3rmin4t0r
Open/Closed:  Closed

Fri 19 Aug 2005 11:09:06 PM UTC, comment #1: 

Removed the sort code and replaced with a remotely similar hack.

Beware of side-effects, so if there is a bug .. please report.
Reviewers are welcome.

Comitted to CVS on 20th Aug 2005 ... at 4:30 AM local time.

Gopal.V <t3rmin4t0r>
Group administrator
Mon 01 Aug 2005 02:56:02 PM UTC, original submission:  

If a derived class declares a field, which is in the alphabetical sort order behind the fields of the base class, then the fields of the base class are not serialized.
Also the fields of the derived class are not serialized in declaration order.

The Method GetReflectionMembers of the class System.Xml.Serialization.XmlReflectionImporter assumes that the Method System.Reflection.Type.GetFields() returns the fields in declaration order from the base class down to the derived class.

This works correct until the Revision 1.20 of the class System.Reflection.ClrType. The Redesign of the "TrimMembers" function in Revision 1.21 sorts the fields and the Xml Serialization fails.

Peter Flaig <fliege>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #3338:  XMLSerial.zip added by None (4KiB - application/x-zip-compressed)
file #3305:  XMLSerial.zip added by fliege (4KiB - application/x-zip-compressed)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-19 t3rmin4t0r StatusNone Fixed
    Assigned toNone t3rmin4t0r
    Open/ClosedOpen Closed
2005-08-11 None Attached File- Added XMLSerial.zip, #2799
2005-08-01 fliege Attached File- Added XMLSerial.zip, #2771

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code