Author: gonzalo
Date: 2005-05-06 16:58:11 -0400 (Fri, 06 May 2005)
New Revision: 44172
Modified:
trunk/mcs/class/System.Web/System.Web.Compilation/AspComponentFoundry.cs
trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
Log:
2005-05-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* AspComponentFoundry.cs: tagnames have precedence over types in
assemblies when they use the same prefix. Fixes bug #71855.
Modified:
trunk/mcs/class/System.Web/System.Web.Compilation/AspComponentFoundry.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/AspComponentFoundry.cs
2005-05-06 20:41:34 UTC (rev 44171)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/AspComponentFoundry.cs
2005-05-06 20:58:11 UTC (rev 44172)
@@ -173,6 +173,10 @@
public override Type GetType (string componentName)
{
Type type = null;
+ Foundry foundry = tagnames [componentName] as
Foundry;
+ if (foundry != null)
+ return foundry.GetType (componentName);
+
if (assemblyFoundry != null) {
try {
type = assemblyFoundry.GetType
(componentName);
@@ -180,14 +184,9 @@
} catch { }
}
- Foundry foundry = tagnames [componentName] as
Foundry;
- if (foundry == null) {
- string msg = String.Format ("Type {0}
not registered for prefix {1}",
+ string msg = String.Format ("Type {0} not
registered for prefix {1}",
componentName, tagPrefix);
- throw new ApplicationException (msg);
- }
-
- return foundry.GetType (componentName);
+ throw new ApplicationException (msg);
}
}
}
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2005-05-06
20:41:34 UTC (rev 44171)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2005-05-06
20:58:11 UTC (rev 44172)
@@ -1,3 +1,8 @@
+2005-05-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * AspComponentFoundry.cs: tagnames have precedence over types in
+ assemblies when they use the same prefix. Fixes bug #71855.
+
2005-05-03 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* WebServiceCompiler.cs: Create the temp directory before
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches