Author: igorz
Date: 2008-02-10 06:52:15 -0500 (Sun, 10 Feb 2008)
New Revision: 95367
Modified:
trunk/mcs/class/System.Web/System.Web/HttpException.cs
Log:
added TARGET_J2EE ifdef
Modified: trunk/mcs/class/System.Web/System.Web/HttpException.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/HttpException.cs 2008-02-10
11:24:43 UTC (rev 95366)
+++ trunk/mcs/class/System.Web/System.Web/HttpException.cs 2008-02-10
11:52:15 UTC (rev 95367)
@@ -314,8 +314,13 @@
{
StringBuilder builder = new StringBuilder ();
HtmlizedException exc = (HtmlizedException)
this.InnerException;
+#if TARGET_J2EE
+ bool isParseException = false;
+ bool isCompileException = false;
+#else
bool isParseException = exc is ParseException;
bool isCompileException = (!isParseException && exc is
CompilationException);
+#endif
WriteFileTop (builder, exc.Title);
builder.AppendFormat ("<h2><em>{0}</em></h2>\r\n",
exc.Title);
@@ -363,6 +368,7 @@
bool needToggleJS = false;
+#if !TARGET_J2EE
if (isCompileException) {
CompilationException cex = exc as
CompilationException;
StringCollection output = cex.CompilerOutput;
@@ -375,6 +381,7 @@
WriteExpandableBlock (builder, "Show
Detailed Compiler Output", sb.ToString ());
}
}
+#endif
if (longCodeVersion != null && longCodeVersion.Length >
0) {
WriteExpandableBlock (builder, "Show Complete
Compilation Source", longCodeVersion.ToString ());
@@ -418,7 +425,7 @@
static void WriteSource (StringBuilder builder, StringBuilder
longVersion, HtmlizedException e)
{
builder.Append ("<code><pre>");
- WritePageSource (builder, longVersion, e);
+ WritePageSource (builder, e);
builder.Append ("</code></pre>\r\n");
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches