[Mono-bugs] [Bug 488293] New: sgen fails to generate serializers when XmlType attribute contains '.'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 24 13:00:03 EDT 2009


           Summary: sgen fails to generate serializers when XmlType
                    attribute contains '.'
    Classification: Mono
           Product: Mono: Tools
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: skolima at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:
Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)

To get a fine-grained control over how enums are xml-serialized, I have several
classes similar to the one attached. sgen.exe fails to generate serializers for
them, failing with multiple

error CS0102: The type `Mono.GeneratedSerializers.Literal.GeneratedWriter'
already contains a definition for `Code'

Also, it does not notice the error and reports success, even though no output
assembly is produced.

Reproducible: Always

Steps to Reproduce:
1. Compile the attached file (gmcs SomeOptionsFlags.cs /t:library)
2. Execute sgen on resulting assembly (sgen SomeOptionsFlags.dll /keep)
3. Witness the invalid .cs produced
Actual Results:  
Microsoft sgen produces a correct serializer for those, Mono sgen (2.4, svn
r130032) do not.

Expected Results:  
XmlSerializers.dll should be produced correctly. When sgen fails to do so, it
should not report success.

Configure bugmail: https://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