[nem-bug] [Nemerle 0000763]: The liat['a] can't serialize by SoapFormatter and XmlSerialiser

feedback at nemerle.org feedback at nemerle.org
Mon Oct 23 00:27:42 CEST 2006


A NOTE has been added to this issue.
======================================================================
<http://nemerle.org/bugs/view.php?id=763> 
======================================================================
Reported By:                VladD2
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   763
Category:                   The Standard Library
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             09-25-2006 01:41 CEST
Last Modified:              10-23-2006 00:27 CEST
======================================================================
Summary:                    The liat['a] can't serialize by SoapFormatter and
XmlSerialiser
Description: 
// REFERENCE: System.Runtime.Serialization.Formatters.Soap.dll
using System;
using System.Console;

using System.IO;
using System.Runtime.Serialization.Formatters.Soap;

module Program
{
  Main() : void
  {
    def file = @"C:\nemerle.save";
    def l = ["adf", "fd", "edfa"];
    using (stream = FileStream(file, FileMode.Create))
        SoapFormatter().Serialize(stream, l);
  }
}
----------------------------------------------------------------------

Unhandled Exception: System.Runtime.Serialization.SerializationException:
Soap Serializer does not support serialic Types :
Nemerle.Core.list`1+Cons[System.String].
   at
System.Runtime.Serialization.Formatters.Soap.ObjectWriter.Write(WriteObjectInfo
objectInfo, NameInfo memberNmeInfo typeNameInfo)
   at
System.Runtime.Serialization.Formatters.Soap.ObjectWriter.Serialize(Object
graph, Header[] inHeaders, SoapWrter)
   at
System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Serialize(Stream
serializationStream, Object grap headers)
   at
System.Runtime.Serialization.Formatters.Soap.SoapFormatter.Serialize(Stream
serializationStream, Object grap
   at Program.Main() in C:\Documents and Settings\VladAdm\Local
Settings\Application Data\Temporary Projects\Conso
on1\Main.n:line 15
======================================================================

----------------------------------------------------------------------
 nazgul - 10-22-06 22:29 
----------------------------------------------------------------------
After the recent conversations on devel-en it looks like MS.NET does not
support serialization of generic types using Soap formatter. Also Binary
formatter is fragile on assembly version numbering changes.

----------------------------------------------------------------------
 VladD2 - 10-23-06 00:27 
----------------------------------------------------------------------
list[a'] is very often used (in Nemerle code). We need add support of
Soap/XmlSerialiser to it.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
09-25-06 01:41 VladD2         New Issue                                    
10-22-06 22:29 nazgul         Note Added: 0001487                          
10-23-06 00:27 VladD2         Note Added: 0001488                          
======================================================================




More information about the bugs mailing list