[Mono-bugs] [Bug 450858] New: Error while compiling generated serializer for XML elementes containing "- "

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 2 07:28:13 EST 2008


           Summary: Error while compiling generated serializer for XML
                    elementes containing "-"
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: SuSE Linux 10.1
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: mjscod at gmx.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User

Description of Problem:
I get the error message "Error while compiling generated serializer" when the
XML schema contains XML elements containing a dash ("-").

The produced CS file looks like the following line:

public sealed class hibernate-mappingSerializer : BaseXmlSerializer

Steps to reproduce the problem:
1. Start an application which uses NHibernate (SVN)

Actual Results:
Error messages like:
Error while compiling generated serializer
/tmp/98199d3/73d7f17.cs(14421,38) : error CS1518: Expected `class', `delegate',
`enum', `interface', or `struct'
/tmp/98199d3/73d7f17.cs(14427,43) : error CS0116: A namespace can only contain
types and namespace declarations
/tmp/98199d3/73d7f17.cs(14430,9) : error CS8025: Parsing error

Expected Results:
No error messages

How often does this happen? 

Additional Information:
The fall-back works as expected.

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

More information about the mono-bugs mailing list