[Mono-bugs] [Bug 575986] New: Linq Where extension method fails on typeof(T) for generic method parameter
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Feb 1 19:58:32 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=575986
http://bugzilla.novell.com/show_bug.cgi?id=575986#c0
Summary: Linq Where extension method fails on typeof(T) for
generic method parameter
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Core
AssignedTo: jbevain at novell.com
ReportedBy: peter at peterjohanson.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=340092)
--> (http://bugzilla.novell.com/attachment.cgi?id=340092)
Test case
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.8
(KHTML, like Gecko) Chrome/4.0.295.0 Safari/532.8
Hit this snafu when trying to try OpenRasta
(http://trac.caffeine-it.com/openrasta) on mono 2.6.1. Linq's Where extension
method doesn't like the use of a typeof(T) with T coming from a generic method
parameter.
I've created a simple test case. Note, the test case works fine if you do
typeof(System.String), but switching that with the generic method parameter, it
blows up with the following error:
peter at fou ~/tmp $ mono --debug type-linq-where.exe
** (type-linq-where.exe:32157): WARNING **: The class Typespec 0x1b000008 could
not be loaded, used in
Unhandled Exception: System.TypeLoadException: Could not load type 'Typespec
0x1b000008'.
at
System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[System.Type].MoveNext
() [0x00059] in
/var/tmp/portage/dev-lang/mono-2.6.1/work/mono-2.6.1/mcs/class/System.Core/System.Linq/Enumerable.cs:2271
at TestLinqTypeWhere+<GetTypes>c__Iterator0`1[ISubFoo].MoveNext () [0x00000]
in <filename unknown>:0
at TestLinqTypeWhere.Main () [0x00000] in <filename unknown>:0
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: http://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