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 [EMAIL PROTECTED]

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: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to