Author: remy.maucherat(a)jboss.com
Date: 2010-12-14 05:43:54 -0500 (Tue, 14 Dec 2010)
New Revision: 1624
Modified:
trunk/java/org/apache/jasper/compiler/JspDocumentParser.java
trunk/java/org/apache/naming/resources/ImmutableNameNotFoundException.java
Log:
- Port exception cleanup.
Modified: trunk/java/org/apache/jasper/compiler/JspDocumentParser.java
===================================================================
--- trunk/java/org/apache/jasper/compiler/JspDocumentParser.java 2010-12-13 13:18:09 UTC
(rev 1623)
+++ trunk/java/org/apache/jasper/compiler/JspDocumentParser.java 2010-12-14 10:43:54 UTC
(rev 1624)
@@ -60,11 +60,6 @@
"http://xml.org/sax/properties/lexical-handler";
private static final String JSP_URI = "http://java.sun.com/JSP/Page";
- private static final EnableDTDValidationException ENABLE_DTD_VALIDATION_EXCEPTION =
- new EnableDTDValidationException(
- "jsp.error.enable_dtd_validation",
- null);
-
private ParserController parserController;
private JspCompilationContext ctxt;
private PageInfo pageInfo;
@@ -751,7 +746,7 @@
public void startDTD(String name, String publicId, String systemId)
throws SAXException {
if (!isValidating) {
- fatalError(ENABLE_DTD_VALIDATION_EXCEPTION);
+ fatalError(new
EnableDTDValidationException("jsp.error.enable_dtd_validation", null));
}
inDTD = true;
@@ -1450,6 +1445,11 @@
EnableDTDValidationException(String message, Locator loc) {
super(message, loc);
}
+
+ public synchronized Throwable fillInStackTrace() {
+ // No stack trace
+ return this;
+ }
}
private static String getBodyType(Node.CustomTag custom) {
Modified: trunk/java/org/apache/naming/resources/ImmutableNameNotFoundException.java
===================================================================
--- trunk/java/org/apache/naming/resources/ImmutableNameNotFoundException.java 2010-12-13
13:18:09 UTC (rev 1623)
+++ trunk/java/org/apache/naming/resources/ImmutableNameNotFoundException.java 2010-12-14
10:43:54 UTC (rev 1624)
@@ -37,4 +37,8 @@
public void setResolverName(Name name) {}
public void setRootCause(Throwable e) {}
+ public synchronized Throwable fillInStackTrace() {
+ // No stack trace
+ return this;
+ }
}
Show replies by date