[Mono-bugs] [Bug 76423][Maj] New - Invalid class name when using Inherits and XSP2

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Oct 12 12:31:43 EDT 2005


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 d.moonfire at mfgames.com.

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

--- shadow/76423	2005-10-12 12:31:42.000000000 -0400
+++ shadow/76423.tmp.12040	2005-10-12 12:31:42.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 76423
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: d.moonfire at mfgames.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid class name when using Inherits and XSP2
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+When you have a class that uses inherits, such as a global.asax that has this:
+
+<%@ Application Language="C#" Inherits="Sil.Peridot.Application" %>
+
+The generated file attempts to do this:
+
+public class Sil.Peridot.Application : System.Web.HttpApplication {
+
+The correct response would have been:
+
+public class global_asax : Sil.Peridot.Application
+
+Actual Results:
+
+Invalid source code, cannot parse.
+
+Expected Results:
+
+It works without errors.
+
+How often does this happen? 
+
+Every time.
+
+Additional Information:
+
+It appear the problem is in TemplateParser, lines 433-435 (SVN). If you
+remove this, it appears to work properly.
+
+#if NET_2_0
+                        className = inherits;
+#else


More information about the mono-bugs mailing list