[Mono-bugs] [Bug 518764] New: custom xml/soap de-serialization does not work with enums (SerializationInfo.GetValue)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 2 10:59:02 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=518764


           Summary: custom xml/soap de-serialization does not work with
                    enums (SerializationInfo.GetValue)
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: matteo.tesser at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1)
Gecko/20090624 Firefox/3.5 GTB5 (.NET CLR 3.5.30729)

Mono fails to deserialize enums when  custom serialization and xml formatters
are used. The bugs does not manifest with binary serialization. In attachment a
simple test case showing a class having one field which type is an enum. 



Reproducible: Always

Steps to Reproduce:
1) get xmlserializationtest.cs
2)gmcs -r System.Runtime.Serialization.Formatters.Soap.dll
xmlserializationtest.cs
3)mono xmlserializationtest.exe

expected ouput (.NET):

Default Serialization
write Case3
read  Case3
Custom Serialization
write Case3
read  Case3

current output(Mono/All Versions)

Default Serialization
write Case3
read  Case3
Custom Serialization
write Case3
read  Case1   <--

Actual Results:  
Default Serialization
write Case3
read  Case3
Custom Serialization
write Case3
read  Case3

Expected Results:  
Default Serialization
write Case3
read  Case3
Custom Serialization
write Case3
read  Case1

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list