[Mono-bugs] [Bug 79055][Blo] New - System.Reflection.MethodInfo' does not contain 'ReturnParameter'
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Aug 10 19:36:09 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by stephen.gennard at microfocus.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79055
--- shadow/79055 2006-08-10 19:36:09.000000000 -0400
+++ shadow/79055.tmp.24946 2006-08-10 19:36:09.000000000 -0400
@@ -0,0 +1,107 @@
+Bug#: 79055
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details: XP
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: stephen.gennard at microfocus.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: System.Reflection.MethodInfo' does not contain 'ReturnParameter'
+
+Please fill in this template when reporting a bug, unless you know what
+you are doing.
+Description of Problem:
+
+Steps to reproduce the problem:
+1. Type in the following:
+using System;
+using System.Diagnostics;
+using System.Reflection;
+
+namespace MicroFocus.MONO.Bugs
+{
+ public class SFTest
+ {
+ public static void L3()
+ {
+ try
+ {
+ throw new Exception("ReturnParameter
+Test");
+ }
+ catch(Exception x)
+ {
+ Console.WriteLine("Current Stack :
+{0}",x.Message);
+
+ StackTrace st = new StackTrace(1, true);
+ StackFrame [] stFrames = st.GetFrames();
+ foreach(StackFrame sf in stFrames )
+ {
+ MethodBase mb = sf.GetMethod();
+ if (mb is MethodInfo)
+ {
+ MethodInfo mi = (MethodInfo)
+sf.GetMethod();
+ Console.WriteLine("{0} : {1}",
+mi.ReturnParameter, mi.Name );
+ }
+ }
+ }
+
+ }
+
+ public static void L2()
+ {
+ L3();
+ }
+
+ public static void L1()
+ {
+ L2();
+ }
+
+ public static int Main()
+ {
+ L1();
+ return 0;
+ }
+ }
+}
+
+2. gmcs it
+
+
+Actual Results:
+
+D:\development\netx50\ilrts\mono\bugs>gmcs SFTest.cs
+SFTest.cs(27,40): error CS0117: `System.Reflection.MethodInfo' does not
+contain
+a definition for `ReturnParameter'
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+
+D:\development\netx50\ilrts\mono\bugs>csc /debug SFTest.cs
+Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
+for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
+Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
+
+
+D:\development\netx50\ilrts\mono\bugs>sftest
+Current Stack : ReturnParameter Test
+Void : L2
+Void : L1
+Int32 : Main
+
+Additional Information:
+With out ReturnParameter, it makes it difficult for COBOL compiler to
+handle return types correctly for dynamic calls.
More information about the mono-bugs
mailing list