[Mono-bugs] [Bug 74955][Nor] Changed - [PATCH] Class specified using /main option should be considered fully qualified

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 25 17:33:55 EDT 2007


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 gert.driesen at pandora.be.

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

--- shadow/74955	2007-04-23 05:53:35.000000000 -0400
+++ shadow/74955.tmp.19901	2007-04-25 17:33:55.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 74955
 Product: Mono: Compilers
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Basic
 AssignedTo: rolfkvinge at ya.com                            
 ReportedBy: gert.driesen at pandora.be               
 QAContact: mono-bugs at ximian.com
@@ -59,6 +59,65 @@
 
 ------- Additional Comments From gert.driesen at pandora.be  2007-04-18 09:39 -------
 This one fails with vbnc.
 
 ------- Additional Comments From rolfkvinge at ya.com  2007-04-23 05:53 -------
 Fixed in r76098.
+
+------- Additional Comments From gert.driesen at pandora.be  2007-04-25 17:33 -------
+When target is winexe, and a main class is not specified on the 
+command line and no main method can be found, then an unexpected 
+error is reported.
+
+To reproduce, compile the following code snippet (using 
+vbnc /target:winexe Form1.vb):
+
+Public Class Form1 Inherits System.Windows.Forms.Form
+
+End Class
+
+Expected result:
+
+error BC30420: 'Sub Main' was not found in 'Form1'.
+
+Actual result:
+
+Property group resolution failed (unrecoverably), showing log
+Unexpected error: An error message should have been shown: 'Failed to 
+resolve property group'
+  at vbnc.Helper.AddError (System.String Message) [0x00000] 
+  at 
+vbnc.PropertyGroupToPropertyAccessExpression.ResolveExpressionInternal
+ (vbnc.ResolveInfo Info) [0x00000] 
+  at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) 
+[0x00000] 
+  at vbnc.Argument.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
+  at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection, 
+vbnc.ResolveInfo Info) [0x00000] 
+  at vbnc.ArgumentList.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
+  at vbnc.InvocationOrIndexExpression.ResolveExpressionInternal 
+(vbnc.ResolveInfo Info) [0x00000] 
+  at vbnc.Expression.ResolveExpression (vbnc.ResolveInfo ResolveInfo) 
+[0x00000] 
+  at vbnc.CallStatement.ResolveStatement (vbnc.ResolveInfo Info) 
+[0x00000] 
+  at vbnc.CodeBlock.ResolveCode (vbnc.ResolveInfo Info) [0x00000] 
+  at vbnc.MethodBaseDeclaration.ResolveCode (vbnc.ResolveInfo Info) 
+[0x00000] 
+  at vbnc.MethodDeclaration.ResolveCode (vbnc.ResolveInfo Info) 
+[0x00000] 
+  at vbnc.SubDeclaration.ResolveCode (vbnc.ResolveInfo Info) 
+[0x00000] 
+  at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection, 
+vbnc.ResolveInfo Info) [0x00000] 
+  at vbnc.BaseObjects`1[vbnc.IMember].ResolveCode (vbnc.ResolveInfo ) 
+[0x00000] 
+  at vbnc.TypeDeclaration.ResolveCode (vbnc.ResolveInfo Info) 
+[0x00000] 
+  at vbnc.ClassDeclaration.ResolveCode (vbnc.ResolveInfo Info) 
+[0x00000] 
+  at vbnc.AssemblyDeclaration.ResolveCode (vbnc.ResolveInfo Info) 
+[0x00000] 
+  at vbnc.Compiler.Compile_Resolve () [0x00000] 
+  at vbnc.Compiler.Compile () [0x00000] 
+Compilation took 00:00:01.5349290
+


More information about the mono-bugs mailing list