[Mono-bugs] [Bug 78568][Nor] New - mcs run time exception System.InvalidOperationException for simple syntax error

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 1 21:14:32 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 eysteinf at stud.ntnu.no.

http://bugzilla.ximian.com/show_bug.cgi?id=78568

--- shadow/78568	2006-06-01 21:14:32.000000000 -0400
+++ shadow/78568.tmp.7582	2006-06-01 21:14:32.000000000 -0400
@@ -0,0 +1,73 @@
+Bug#: 78568
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 10.4.6
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: eysteinf at stud.ntnu.no               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs run time exception System.InvalidOperationException for simple syntax error
+
+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. Make a file test.cs with this contents:
+
+using System;
+using System.Collections;
+
+public class runClass{
+	public static void Main(){
+		//void
+	}
+	public ArrayList FuelOilUsed;
+	public ArrayList BunkerOilUsed;
+	
+	public String OilUsageText(String Entity){
+			
+			String returnValue = "";
+			returnValue += ("{\\bf Total}&"+TotalFuelOilUsed)
+			returnValue += ("\\hline\n");
+			returnValue += ("\\hline\n");
+			
+			returnValue += ("\\hline\n");
+			returnValue += ("{\\bf Total}&"+TotalBunkerOilUsed)
+			
+			returnValue += ("\\hline\n");
+			returnValue += ("\\hline\n");
+				
+			
+			return returnValue;
+
+	}
+}
+
+2. mcs test.cs
+
+Actual Results:
+Unhandled Exception: System.InvalidOperationException: Method 'OilUsageText' does not have a 
+method body.
+in <0x0011c> System.Reflection.Emit.MethodBuilder:fixup ()
+in <0x00280> System.Reflection.Emit.TypeBuilder:CreateType ()
+in <0x000a0> Mono.CSharp.TypeContainer:CloseType ()
+
+Expected Results:
+test.cs(17,4): error CS1002: Expecting `;'
+Compilation failed: 1 error(s), 0 warnings
+
+How often does this happen? 
+Every time
+
+Additional Information:
+The error message has been reported before; though it was supposed to be fixed. I used the 
+latest version of the software, but the error is still there.


More information about the mono-bugs mailing list