[Mono-bugs] [Bug 30391][Min] New - mcs crashes on void Main with String[]
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
16 Sep 2002 17:53:09 -0000
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 osewa77@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=30391
--- shadow/30391 Mon Sep 16 13:53:09 2002
+++ shadow/30391.tmp.19373 Mon Sep 16 13:53:09 2002
@@ -0,0 +1,65 @@
+Bug#: 30391
+Product: Mono/MCS
+Version: unspecified
+OS: Red Hat 7.3
+OS Details: using mono-0.15 release
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: Misc
+AssignedTo: miguel@ximian.com
+ReportedBy: osewa77@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs crashes on void Main with String[]
+
+Description of Problem:
+mcs crashes when I create a main class with class "String[]" instead of
+string for the comman line arguments
+
+Steps to reproduce the problem:
+Try to compile this short test program:
+class SeunBug1 {
+ public static voin Main(String [] args) {
+ //nothing needed here, really.
+ }
+}
+
+Actual Results:
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required
+in <0x0004e> 00 Mono.CSharp.ComposedCast:DoResolveType
+(Mono.CSharp.EmitContext)
+in <0x00080> 00 Mono.CSharp.Expression:Resolve
+(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags)
+in <0x00084> 00 Mono.CSharp.DeclSpace:ResolveType
+(Mono.CSharp.Expression,bool,Mono.CSharp.Location)
+in <0x00032> 00 Mono.CSharp.Parameter:Resolve
+(Mono.CSharp.DeclSpace,Mono.CSharp.Location)
+in <0x00141> 00 Mono.CSharp.Parameters:ComputeParameterTypes
+(Mono.CSharp.DeclSpace)
+in <0x00073> 00 Mono.CSharp.Parameters:GetParameterInfo (Mono.CSharp.DeclSpace)
+in <0x00015> 00 Mono.CSharp.MethodCore:DoDefineParameters
+(Mono.CSharp.TypeContainer)
+in <0x0002b> 00 Mono.CSharp.Method:CheckBase (Mono.CSharp.TypeContainer)
+in <0x00041> 00 Mono.CSharp.Method:Define (Mono.CSharp.TypeContainer)
+in <0x000db> 00 Mono.CSharp.TypeContainer:DefineMembers
+(System.Collections.ArrayList,System.Reflection.MemberInfo[])
+in <0x00436> 00 Mono.CSharp.TypeContainer:DefineMembers
+(Mono.CSharp.TypeContainer)
+in <0x00427> 00 Mono.CSharp.RootContext:PopulateTypes ()
+in <0x006df> 00 Mono.CSharp.Driver:MainDriver (string[])
+in <0x0000b> 00 Mono.CSharp.Driver:Main (string[])
+
+Expected Results:
+error CS5001: Program my_bug.exe does not have an entry point defined
+Compilation failed: 1 error(s), 0 warnings
+
+How often does this happen?
+Always. (Gee, I found my first genuine bug :)
+
+Additional Information:
+I am using the mono-0.15 rpm, so I this might have been fixed