Author: krasnov
Date: 2006-01-09 12:34:33 -0500 (Mon, 09 Jan 2006)
New Revision: 55246

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs
Log:
* ObjectStateFormatter.cs: Merged TARGET_JVM parts in 
TypeFormatter.Read, TypeFormatter.Write from /main/5

Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2006-01-09 17:25:44 UTC 
(rev 55245)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2006-01-09 17:34:33 UTC 
(rev 55246)
@@ -1,3 +1,8 @@
+2006-01-09  Vladimir Krasnov  <[EMAIL PROTECTED]>
+
+       * ObjectStateFormatter.cs: Merged TARGET_JVM parts in 
+       TypeFormatter.Read, TypeFormatter.Write from /main/5
+
 2006-01-09  Konstantin Triger <[EMAIL PROTECTED]>
 
        * Page.cs: make ProcessRequest virtual under TARGET_JVM.

Modified: trunk/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs    
2006-01-09 17:25:44 UTC (rev 55245)
+++ trunk/mcs/class/System.Web/System.Web.UI/ObjectStateFormatter.cs    
2006-01-09 17:34:33 UTC (rev 55246)
@@ -721,9 +721,10 @@
                                } else {
                                        w.Write (PrimaryId);
                                        w.Write (((Type) o).FullName);
-                                       
+#if !TRAGET_JVM
                                        // We should cache the name of the 
assembly
                                        w.Write (((Type) o).Assembly.FullName);
+#endif
                                }
                        }
                        
@@ -731,9 +732,12 @@
                        {
                                if (token == PrimaryId) {
                                        string type = r.ReadString ();
+#if !TARGET_JVM
                                        string assembly = r.ReadString ();
-                                       
                                        Type t = Assembly.Load 
(assembly).GetType (type);
+#else
+                                       Type t = Type.GetType(type);
+#endif
                                        ctx.CacheItem (t);
                                        return t;
                                } else {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to