Bug 320046 (MONO77250) - [GMCS] System.NotSupportedException in simple generic code
Summary: [GMCS] System.NotSupportedException in simple generic code
Status: RESOLVED FIXED
Alias: MONO77250
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-14 00:23 UTC by Michal Moskal
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
testcase (2.59 KB, text/plain)
2006-01-14 00:23 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:44:37 UTC


---- Reported by malekith@pld-linux.org 2006-01-13 17:23:20 MST ----

Description of Problem:

Please try to compile the attached program. The result is:


Exception caught by the compiler while compiling:
   Block that caused the problem begin at: foo.cs(39,27):
                     Block being compiled: [foo.cs(41,16):,Internal(1,1):]
System.NotSupportedException: Operation is not supported.

Unhandled Exception: System.NotSupportedException: Operation is not supported.
in <0x00029> System.Reflection.MethodBase:GetGenericArguments ()
in <0x004d2> Mono.CSharp.TypeManager:CSharpSignature
(System.Reflection.MethodBase mb, Boolean show_accessor)
in <0x00013> Mono.CSharp.TypeManager:CSharpSignature
(System.Reflection.MethodBase mb)
in <0x00068> Mono.CSharp.Invocation:Error_InvalidArguments (Location loc,
Int32 idx, System.Reflection.MethodBase method, System.Type delegate_type,
Mono.CSharp.Argument a, ParameterData expected_par)
in <0x0031f> Mono.CSharp.Invocation:VerifyArgumentsCompat
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList Arguments, Int32
arg_count, System.Reflection.MethodBase method, Boolean
chose_params_expanded, System.Type delegate_type, Boolean may_fail,
Location loc)
in <0x00602> Mono.CSharp.Invocation:OverloadResolve
(Mono.CSharp.EmitContext ec, Mono.CSharp.MethodGroupExpr me,
System.Collections.ArrayList Arguments, Boolean may_fail, Location loc)
in <0x007ee> Mono.CSharp.New:DoResolve (Mono.CSharp.EmitContext ec)
in <0x00134> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
ResolveFlags flags)
in <0x00028> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
in <0x0010d> Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext ec)
in <0x00134> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
ResolveFlags flags)
in <0x00028> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
in <0x0002c> Mono.CSharp.ExpressionStatement:ResolveStatement
(Mono.CSharp.EmitContext ec)
in <0x00037> Mono.CSharp.StatementExpression:Resolve
(Mono.CSharp.EmitContext ec)
in <0x00258> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
in <0x00258> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
in <0x001de> Mono.CSharp.EmitContext:ResolveTopBlock
(Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock
block, Mono.CSharp.Parameters ip, IMethodData md, System.Boolean unreachable)


Additional Information:

I'm running 1.1.11.



---- Additional Comments From malekith@pld-linux.org 2006-01-13 17:23:38 MST ----

Created an attachment (id=169107)
testcase




---- Additional Comments From martin@ximian.com 2006-01-15 20:54:04 MST ----

This is supposed to report an error message; fixed in SVN.



---- Additional Comments From malekith@pld-linux.org 2006-01-16 05:34:00 MST ----

Sorry for the pri:major, I first thought this was a correct code.

Imported an attachment (id=169107)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>amd64 pld linux</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".