[Mono-bugs] [Bug 352589] New: ArgumentOutOfRangeException with MainModule.Import (< complex generic method>)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jan 9 05:52:07 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=352589
Summary: ArgumentOutOfRangeException with MainModule.Import
(<complex generic method>)
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Cecil
AssignedTo: jbevain at novell.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at ximian.com
Found By: ---
using System.Collections.Generic;
using System;
using System.Reflection;
using System.Reflection.Emit;
using Mono.Cecil;
using Mono.Cecil.Cil;
class t
{
static void Main()
{
AssemblyDefinition a = AssemblyFactory.DefineAssembly("cecil",
AssemblyKind.Dll);
MethodReference mr;
mr =
a.MainModule.Import(typeof(System.Collections.Generic.IList<>).GetInterfaces()[0].GetMethod
("Add"));
Console.WriteLine(mr.ToString());
}
}
Stacktrace:
en Mono.Cecil.GenericParameterCollection.get_Item(Int32 index) en
G:\Volatile\head\mcs\class\Mono.Cecil\Mono.Cecil\GenericParameterCollectioncs:línea
45
en Mono.Cecil.ReflectionHelper.GetGenericParameter(Type t, ImportContext
context) en
G:\Volatile\head\mcs\class\Mono.Cecil\Mono.Cecil\ReflectionHelper.cs:línea 171
en Mono.Cecil.ReflectionHelper.ImportSystemType(Type t, ImportContext
context) en
G:\Volatile\head\mcs\class\Mono.Cecil\Mono.Cecil\ReflectionHelper.cs:línea 218
en Mono.Cecil.ReflectionHelper.ImportMethodBase(MethodBase mb, Type retType,
ImportContext context) en
G:\Volatile\head\mcs\class\Mono.Cecil\Mono.Cecil\ReflectionHelper.cs:línea 357
en Mono.Cecil.ReflectionHelper.ImportMethodInfo(MethodInfo mi, ImportContext
context) en
G:\Volatile\head\mcs\class\Mono.Cecil\Mono.Cecil\ReflectionHelper.cs:línea 371
en Mono.Cecil.ModuleDefinition.Import(MethodBase meth) en
G:\Volatile\head\mcs\class\Mono.Cecil\Mono.Cecil\ModuleDefinition.cs:línea 246
en t.Main() en
G:\Rolf\Proyectos\C#\Tests\ConsoleApplication1\Program.cs:línea 15
--
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