https://bugzilla.novell.com/show_bug.cgi?id=480525


           Summary: Cecil incorectly emits enum constants as 'nullref'
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Cecil
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


C# example

using System;
using System.Runtime.InteropServices;

namespace Foo {
  public class Bar {
    public const CallingConvention CConv = CallingConvention.Cdecl;
  }
}


CECIL emits

namespace Foo
{
  .class public auto ansi beforefieldinit Bar
      extends [mscorlib]System.Object
  {
    .field public static  literal  valuetype
[mscorlib]System.Runtime.InteropServices.CallingConvention CConv = nullref



It looks like 'ReflectionWriter::byte [] EncodeConstant (ElementType et, object
value)' does not handle enums.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to