[Mono-bugs] [Bug 369253] New: Invalid IL code in System.String:.cctor (): IL_0017
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Mar 11 12:01:03 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=369253
Summary: Invalid IL code in System.String:.cctor (): IL_0017
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
1. Compile with gmcs
using System;
using System.Reflection;
using System.Reflection.Emit;
public class C
{
public static void Main (string[] args)
{
Assembly a = Assembly.LoadFile (args[0]);
Console.WriteLine (a.FullName);
Type t = a.GetType ("System.AttributeTargets");
FieldInfo fi = t.GetFields () [1];
object value = fi.GetValue (fi);
Console.WriteLine (value.ToString ());
}
}
2. Run the program with following arguments
test.exe ../../class/lib/default/mscorlib.dll
Actual Results:
mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Unhandled Exception: System.InvalidProgramException: Invalid IL code in
System.String:.cctor (): IL_0017: call 0x06000591
at System.Enum.ToString () [0x00000]
at C.Main (System.String[] args) [0x00000]
--
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