Ver código fonte

TARGET_JVM

svn path=/trunk/mcs/; revision=66044
Andrew Skiba 19 anos atrás
pai
commit
118ad65016

+ 4 - 0
mcs/class/System/System.Net/ChangeLog

@@ -1,3 +1,7 @@
+2006-09-28 Andrew Skiba <[email protected]>
+
+	* WebConnection.cs: TARGET_JVM
+
 2006-09-28 Gonzalo Paniagua Javier <[email protected]>
 
 	* WebException.cs: patch by Andrew Skiba that fixes serialization

+ 4 - 0
mcs/class/System/System.Net/WebConnection.cs

@@ -305,7 +305,11 @@ namespace System.Net
 
 			if (e == null) { // At least we now where it comes from
 				try {
+#if TARGET_JVM
+					throw new Exception ();
+#else
 					throw new Exception (new System.Diagnostics.StackTrace ().ToString ());
+#endif
 				} catch (Exception e2) {
 					e = e2;
 				}