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

Submitted by:  Peter Flaig <fliege>
Submitted on:  Mon 01 Aug 2005 02:56:02 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Gopal.V <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>
Project AdministratorIn charge of this item.
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>

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 19 Aug 2005 11:09:06 PM UTCt3rmin4t0rStatusNone=>Fixed
  Assigned toNone=>t3rmin4t0r
  Open/ClosedOpen=>Closed
Thu 11 Aug 2005 05:13:01 AM UTCNoneAttached File-=>Added XMLSerial.zip, #2799
Mon 01 Aug 2005 02:56:02 PM UTCfliegeAttached File-=>Added XMLSerial.zip, #2771

Back to the top


Powered by Savane 3.1-cleanup1