[Mono-bugs] [Bug 480525] New: Cecil incorectly emits enum constants as 'nullref'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 27 13:17:41 EST 2009


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: jbevain at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list