Author: kostat
Date: 2006-12-04 09:20:31 -0500 (Mon, 04 Dec 2006)
New Revision: 68950
Modified:
trunk/mcs/class/System/System.Net.Mail/ChangeLog
trunk/mcs/class/System/System.Net.Mail/SmtpException.cs
trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientException.cs
trunk/mcs/class/System/System.Net/ChangeLog
trunk/mcs/class/System/System.Net/WebRequest.cs
trunk/mcs/class/System/System.Net/WebResponse.cs
Log:
TARGET_JVM limitations workarounds
Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2006-12-04 14:16:41 UTC (rev
68949)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2006-12-04 14:20:31 UTC (rev
68950)
@@ -1,5 +1,9 @@
2006-12-04 Konstantin Triger <[EMAIL PROTECTED]>
+ * WebRequest.cs, WebResponse.cs: TARGET_JVM limitation workaround.
+
+2006-12-04 Konstantin Triger <[EMAIL PROTECTED]>
+
* ServicePointManager.cs: correct assignment typo.
* ServicePoint.cs: Remove unneeded locks for getters, add internal
setter.
Modified: trunk/mcs/class/System/System.Net/WebRequest.cs
===================================================================
--- trunk/mcs/class/System/System.Net/WebRequest.cs 2006-12-04 14:16:41 UTC
(rev 68949)
+++ trunk/mcs/class/System/System.Net/WebRequest.cs 2006-12-04 14:20:31 UTC
(rev 68950)
@@ -243,8 +243,12 @@
return new WebProxy ();
}
#endif
-
- void ISerializable.GetObjectData (SerializationInfo
serializationInfo,
+#if TARGET_JVM
+ public virtual void GetObjectData
+#else
+ void ISerializable.GetObjectData
+#endif
+ (SerializationInfo serializationInfo,
StreamingContext
streamingContext)
{
throw new NotSupportedException ();
Modified: trunk/mcs/class/System/System.Net/WebResponse.cs
===================================================================
--- trunk/mcs/class/System/System.Net/WebResponse.cs 2006-12-04 14:16:41 UTC
(rev 68949)
+++ trunk/mcs/class/System/System.Net/WebResponse.cs 2006-12-04 14:20:31 UTC
(rev 68950)
@@ -4,28 +4,28 @@
// Author:
// Lawrence Pit ([EMAIL PROTECTED])
//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
using System;
using System.IO;
using System.Runtime.Serialization;
@@ -75,13 +75,20 @@
{
throw new NotSupportedException ();
}
-
+#if TARGET_JVM //enable overrides for extenders
+ public virtual void Dispose()
+#else
void IDisposable.Dispose()
+#endif
{
Close ();
}
-
- void ISerializable.GetObjectData (SerializationInfo
serializationInfo,
+#if TARGET_JVM //enable overrides for extenders
+ public virtual void GetObjectData
+#else
+ void ISerializable.GetObjectData
+#endif
+ (SerializationInfo serializationInfo,
StreamingContext
streamingContext)
{
throw new NotSupportedException ();
Modified: trunk/mcs/class/System/System.Net.Mail/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/ChangeLog 2006-12-04 14:16:41 UTC
(rev 68949)
+++ trunk/mcs/class/System/System.Net.Mail/ChangeLog 2006-12-04 14:20:31 UTC
(rev 68950)
@@ -1,3 +1,7 @@
+2006-12-04 Konstantin Triger <[EMAIL PROTECTED]>
+
+ * SmtpException.cs, SmtpFailedRecipientException.cs: TARGET_JVM
limitation workaround.
+
2006-12-01 Sebastien Pouliot <[EMAIL PROTECTED]>
* SmtpClient.cs: Added MonoTODO for missing SSL/TLS support and
Modified: trunk/mcs/class/System/System.Net.Mail/SmtpException.cs
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/SmtpException.cs 2006-12-04
14:16:41 UTC (rev 68949)
+++ trunk/mcs/class/System/System.Net.Mail/SmtpException.cs 2006-12-04
14:20:31 UTC (rev 68950)
@@ -89,11 +89,12 @@
public override void GetObjectData (SerializationInfo info,
StreamingContext context)
{
}
-
+#if !TARGET_JVM //remove private implementation
[MonoTODO]
void ISerializable.GetObjectData (SerializationInfo info,
StreamingContext context)
{
}
+#endif
}
}
Modified: trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientException.cs
===================================================================
--- trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientException.cs
2006-12-04 14:16:41 UTC (rev 68949)
+++ trunk/mcs/class/System/System.Net.Mail/SmtpFailedRecipientException.cs
2006-12-04 14:20:31 UTC (rev 68950)
@@ -94,11 +94,12 @@
public override void GetObjectData (SerializationInfo
serializationInfo, StreamingContext streamingContext)
{
}
-
+#if !TARGET_JVM //remove private implementation
[MonoTODO]
void ISerializable.GetObjectData (SerializationInfo
serializationInfo, StreamingContext streamingContext)
{
}
+#endif
#endregion // Methods
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches