[Mono-bugs] [Bug 42994][Blo] Changed - compiler fails on composite control

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 16 May 2003 04:08:32 -0400 (EDT)


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 tkaszuba@hotmail.com.

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

--- shadow/42994	Wed May 14 13:43:14 2003
+++ shadow/42994.tmp.10352	Fri May 16 04:08:32 2003
@@ -2,13 +2,13 @@
 Product: Mono/Class Libraries
 Version: unspecified
 OS: Red Hat 9.0
 OS Details: Fresh install
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Blocker
 Component: System.Web
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tkaszuba@hotmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -267,6 +267,483 @@
 
 Additional Information:
 I'm suspecting that the compiler notices that it's returning a null value.
 It would be worthwile to see what the auto generated file looks like under
 MS. I've also noticed that not all the compilation classes are done, maybe
 that's the cause of this error.
+
+------- Additional Comments From tkaszuba@hotmail.com  2003-05-16 04:08 -------
+I've compiled the web control on MS and this is the code generated 
+file:
+
+********************* MS Windows *******************************
+
+//--------------------------------------------------------------------
+----------
+// <autogenerated>
+//     This code was generated by a tool.
+//     Runtime Version: 1.0.3705.288
+//
+//     Changes to this file may cause incorrect behavior and will be 
+lost if 
+//     the code is regenerated.
+// </autogenerated>
+//--------------------------------------------------------------------
+----------
+
+namespace ASP {
+    using System;
+    using System.Collections;
+    using System.Collections.Specialized;
+    using System.Configuration;
+    using System.Text;
+    using System.Text.RegularExpressions;
+    using System.Web;
+    using System.Web.Caching;
+    using System.Web.SessionState;
+    using System.Web.Security;
+    using System.Web.UI;
+    using System.Web.UI.WebControls;
+    using System.Web.UI.HtmlControls;
+    using ASP;
+    
+    #line 2 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+    using ICW.WebControls;
+    
+    #line default
+    
+    
+    [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
+    public class web_literal_aspx : System.Web.UI.Page, 
+System.Web.SessionState.IRequiresSessionState {
+        
+        
+        #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+        protected System.Web.UI.WebControls.Image __control3;
+        
+        #line default
+        
+        
+        #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+        protected System.Web.UI.WebControls.Image __control4;
+        
+        #line default
+        
+        
+        #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+        protected System.Web.UI.WebControls.Image __control5;
+        
+        #line default
+        
+        
+        #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+        protected ICW.WebControls.ThreeDimensionalBar BankBar;
+        
+        #line default
+        
+        
+        #line 8 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+        protected System.Web.UI.HtmlControls.HtmlForm __control2;
+        
+        #line default
+        
+        private static bool __intialized = false;
+        
+        private static System.Collections.ArrayList 
+__fileDependencies;
+        
+        public web_literal_aspx() {
+            System.Collections.ArrayList dependencies;
+            if ((ASP.web_literal_aspx.__intialized == false)) {
+                dependencies = new System.Collections.ArrayList();
+                dependencies.Add
+("c:\\inetpub\\wwwroot\\ftp\\web_literal.aspx");
+                ASP.web_literal_aspx.__fileDependencies = 
+dependencies;
+                ASP.web_literal_aspx.__intialized = true;
+            }
+            this.Server.ScriptTimeout = 30000000;
+        }
+        
+        protected override bool SupportAutoEvents {
+            get {
+                return false;
+            }
+        }
+        
+        protected ASP.Global_asax ApplicationInstance {
+            get {
+                return ((ASP.Global_asax)
+(this.Context.ApplicationInstance));
+            }
+        }
+        
+        public override string TemplateSourceDirectory {
+            get {
+                return "/ftp";
+            }
+        }
+        
+        private void __BuildControl__control3
+(System.Web.UI.WebControls.Image __ctrl) {
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.Width = System.Web.UI.WebControls.Unit.Parse
+("43px", System.Globalization.CultureInfo.InvariantCulture);
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.Height = System.Web.UI.WebControls.Unit.Parse
+("155px", System.Globalization.CultureInfo.InvariantCulture);
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.EnableViewState = false;
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.ImageUrl = "_images/b2.gif";
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.ID = "Container1";
+            
+            #line default
+        }
+        
+        private void __BuildControl__control4
+(System.Web.UI.WebControls.Image __ctrl) {
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.ID = "Top2";
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.Width = System.Web.UI.WebControls.Unit.Parse
+("43px", System.Globalization.CultureInfo.InvariantCulture);
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.EnableViewState = false;
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.ImageUrl = "_images/b0.gif";
+            
+            #line default
+        }
+        
+        private void __BuildControl__control5
+(System.Web.UI.WebControls.Image __ctrl) {
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.ID = "Bottom1";
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.Width = System.Web.UI.WebControls.Unit.Parse
+("43px", System.Globalization.CultureInfo.InvariantCulture);
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.EnableViewState = false;
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.ImageUrl = "_images/BackWhole.gif";
+            
+            #line default
+        }
+        
+        private System.Web.UI.Control __BuildControlBankBar() {
+            ICW.WebControls.ThreeDimensionalBar __ctrl;
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl = new ICW.WebControls.ThreeDimensionalBar();
+            
+            #line default
+            this.BankBar = __ctrl;
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.ID = "BankBar";
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl.TopPx = 6;
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            this.__BuildControl__control3(__ctrl.Container);
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            this.__BuildControl__control4(__ctrl.Top);
+            
+            #line default
+            
+            #line 9 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            this.__BuildControl__control5(__ctrl.Bottom);
+            
+            #line default
+            return __ctrl;
+        }
+        
+        private System.Web.UI.Control __BuildControl__control2() {
+            System.Web.UI.HtmlControls.HtmlForm __ctrl;
+            
+            #line 8 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __ctrl = new System.Web.UI.HtmlControls.HtmlForm();
+            
+            #line default
+            this.__control2 = __ctrl;
+            System.Web.UI.IParserAccessor __parser = 
+((System.Web.UI.IParserAccessor)(__ctrl));
+            
+            #line 8 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __parser.AddParsedSubObject(new 
+System.Web.UI.LiteralControl("\n\t"));
+            
+            #line default
+            
+            #line 8 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            this.__BuildControlBankBar();
+            
+            #line default
+            
+            #line 8 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __parser.AddParsedSubObject(this.BankBar);
+            
+            #line default
+            
+            #line 8 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __parser.AddParsedSubObject(new 
+System.Web.UI.LiteralControl("\n"));
+            
+            #line default
+            return __ctrl;
+        }
+        
+        private void __BuildControlTree(System.Web.UI.Control __ctrl) 
+{
+            System.Web.UI.IParserAccessor __parser = 
+((System.Web.UI.IParserAccessor)(__ctrl));
+            
+            #line 1 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __parser.AddParsedSubObject(new 
+System.Web.UI.LiteralControl
+("\n<html>\n<head>\n<title>Literal</title>\n</head>\n<body>\n"));
+            
+            #line default
+            
+            #line 1 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            this.__BuildControl__control2();
+            
+            #line default
+            
+            #line 1 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __parser.AddParsedSubObject(this.__control2);
+            
+            #line default
+            
+            #line 1 "c:\inetpub\wwwroot\ftp\web_literal.aspx"
+            __parser.AddParsedSubObject(new 
+System.Web.UI.LiteralControl("\n</body>\n</html>\n\n"));
+            
+            #line default
+        }
+        
+        protected override void FrameworkInitialize() {
+            this.__BuildControlTree(this);
+            this.FileDependencies = 
+ASP.web_literal_aspx.__fileDependencies;
+            this.EnableViewStateMac = true;
+        }
+        
+        public override int GetTypeHashCode() {
+            return -574120184;
+        }
+    }
+}
+
+****************************************************************
+
+******************* Red Hat 9 **********************************
+Line 1: // -----------------------------------------------------------
+-------------------
+Line 2: //  <autogenerated>
+Line 3: //      This code was generated by a tool.
+Line 4: //      Mono Runtime Version: 0.0
+Line 5: //
+Line 6: //      Changes to this file may cause incorrect behavior and 
+will be lost if
+Line 7: //      the code is regenerated.
+Line 8: //  </autogenerated>
+Line 9: // -----------------------------------------------------------
+-------------------
+Line 10:
+Line 11: namespace ASP {
+Line 12:     using System;
+Line 13:     using System.Collections;
+Line 14:     using System.Collections.Specialized;
+Line 15:     using System.Configuration;
+Line 16:     using System.Text;
+Line 17:     using System.Text.RegularExpressions;
+Line 18:     using System.Web;
+Line 19:     using System.Web.Caching;
+Line 20:     using System.Web.Security;
+Line 21:     using System.Web.SessionState;
+Line 22:     using System.Web.UI;
+Line 23:     using System.Web.UI.WebControls;
+Line 24:     using System.Web.UI.HtmlControls;
+Line 25:     using ICW.WebControls;
+Line 26:
+Line 27:     public class web_literal_aspx : System.Web.UI.Page, 
+System.Web.SessionState.IRequiresSessionState {
+Line 28:
+Line 29:         protected ICW.WebControls.ThreeDimensionalBar 
+BankBar;
+Line 30:
+Line 31:         protected System.Web.UI.HtmlControls.HtmlForm 
+_bctrl_1;
+Line 32:
+Line 33:         protected System.Web.UI.WebControls.Image Container1;
+Line 34:
+Line 35:         protected System.Web.UI.WebControls.Image Bottom1;
+Line 36:
+Line 37:         protected System.Web.UI.WebControls.Image Top2;
+Line 38:
+Line 39:         private static bool __intialized = false;
+Line 40:
+Line 41:         public web_literal_aspx () {
+Line 42:             if ((ASP.web_literal_aspx.__intialized == 
+false)) {
+Line 43:                 ASP.web_literal_aspx.__intialized = true;
+Line 44:             }
+Line 45:         }
+Line 46:
+Line 47:         protected override bool SupportAutoEvents {
+Line 48:             get {
+Line 49:                 return false;
+Line 50:             }
+Line 51:         }
+Line 52:
+Line 53:         protected System.Web.HttpApplication 
+ApplicationInstance {
+Line 54:             get {
+Line 55:                 return ((System.Web.HttpApplication)
+(this.Context.ApplicationInstance));
+Line 56:             }
+Line 57:         }
+Line 58:
+Line 59:         public override string TemplateSourceDirectory {
+Line 60:             get {
+Line 61:                 return "/";
+Line 62:             }
+Line 63:         }
+Line 64:
+Line 65:         public override int GetTypeHashCode() {
+Line 66:             return 679866374;
+Line 67:         }
+Line 68:
+Line 69:         private void __BuildControl_Bottom1
+(System.Web.UI.WebControls.Image __ctrl) {
+Line 70:             __ctrl.ID = "Bottom1";
+Line 71:             __ctrl.ImageUrl = "_images/BackWhole.gif";
+Line 72:             __ctrl.EnableViewState = false;
+Line 73:             __ctrl.Width = 
+System.Web.UI.WebControls.Unit.Parse("43px", 
+System.Globalization.CultureInfo.InvariantCulture);
+Line 74:             return __ctrl;
+Line 75:         }
+Line 76:
+Line 77:         protected override void FrameworkInitialize() {
+Line 78:             this.__BuildControlTree(this);
+Line 79:         }
+Line 80:
+Line 81:         private void __BuildControl_Top2
+(System.Web.UI.WebControls.Image __ctrl) {
+Line 82:             __ctrl.ID = "Top2";
+Line 83:             __ctrl.ImageUrl = "_images/b0.gif";
+Line 84:             __ctrl.EnableViewState = false;
+Line 85:             __ctrl.Width = 
+System.Web.UI.WebControls.Unit.Parse("43px", 
+System.Globalization.CultureInfo.InvariantCulture);
+Line 86:             return __ctrl;
+Line 87:         }
+Line 88:
+Line 89:         private System.Web.UI.Control __BuildControl__bctrl_1
+() {
+Line 90:             System.Web.UI.HtmlControls.HtmlForm __ctrl;
+Line 91:             __ctrl = new System.Web.UI.HtmlControls.HtmlForm
+();
+Line 92:             this._bctrl_1 = __ctrl;
+Line 93:             System.Web.UI.IParserAccessor __parser = 
+((System.Web.UI.IParserAccessor)(__ctrl));
+Line 94:             __parser.AddParsedSubObject(new 
+System.Web.UI.LiteralControl("\n\t"));
+Line 95:             this.__BuildControl_BankBar();
+Line 96:             __parser.AddParsedSubObject(this.BankBar);
+Line 97:             __parser.AddParsedSubObject(new 
+System.Web.UI.LiteralControl("\n"));
+Line 98:             return __ctrl;
+Line 99:         }
+Line 100:
+Line 101:         private void __BuildControlTree
+(System.Web.UI.Control __ctrl) {
+Line 102:             System.Web.UI.IParserAccessor __parser = 
+((System.Web.UI.IParserAccessor)(__ctrl));
+Line 103:             __parser.AddParsedSubObject(new 
+System.Web.UI.LiteralControl
+("\n\n<html>\n<head>\n<title>Literal</title>\n</head>\n<body>\n"));
+Line 104:             this.__BuildControl__bctrl_1();
+Line 105:             __parser.AddParsedSubObject(this._bctrl_1);
+Line 106:             __parser.AddParsedSubObject(new 
+System.Web.UI.LiteralControl("\n</body>\n</html>\n\n"));
+Line 107:         }
+Line 108:
+Line 109:         private void __BuildControl_Container1
+(System.Web.UI.WebControls.Image __ctrl) {
+Line 110:             __ctrl.ID = "Container1";
+Line 111:             __ctrl.ImageUrl = "_images/b2.gif";
+Line 112:             __ctrl.EnableViewState = false;
+Line 113:             __ctrl.Width = 
+System.Web.UI.WebControls.Unit.Parse("43px", 
+System.Globalization.CultureInfo.InvariantCulture);
+Line 114:             __ctrl.Height = 
+System.Web.UI.WebControls.Unit.Parse("155px", 
+System.Globalization.CultureInfo.InvariantCulture);
+Line 115:             return __ctrl;
+Line 116:         }
+Line 117:
+Line 118:         private System.Web.UI.Control __BuildControl_BankBar
+() {
+Line 119:             ICW.WebControls.ThreeDimensionalBar __ctrl;
+Line 120:             __ctrl = new ICW.WebControls.ThreeDimensionalBar
+();
+Line 121:             this.BankBar = __ctrl;
+Line 122:             __ctrl.ID = "BankBar";
+Line 123:             __ctrl.TopPx = 6;
+Line 124:             this.__BuildControl_Container1
+(__ctrl.Container);
+Line 125:             this.__BuildControl_Top2(__ctrl.Top);
+Line 126:             this.__BuildControl_Bottom1(__ctrl.Bottom);
+Line 127:             return __ctrl;
+Line 128:         }
+Line 129:     }
+Line 130:     }
+*******************************************************************
+
+Hope it helps.
+