Author: mrglavas
Date: Mon Oct 26 20:48:54 2015
New Revision: 1710695

URL: http://svn.apache.org/viewvc?rev=1710695&view=rev
Log:
Fixing JIRA Issue #1667: https://issues.apache.org/jira/browse/XERCESJ-1667. 
Avoid filling in the stack trace of the ABORT exception. This can help prevent 
a ClassLoader memory leak.

Modified:
    xerces/java/trunk/src/org/apache/xerces/dom/DOMNormalizer.java

Modified: xerces/java/trunk/src/org/apache/xerces/dom/DOMNormalizer.java
URL: 
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/dom/DOMNormalizer.java?rev=1710695&r1=1710694&r2=1710695&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/dom/DOMNormalizer.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/dom/DOMNormalizer.java Mon Oct 26 
20:48:54 2015
@@ -152,7 +152,12 @@ public class DOMNormalizer implements XM
     /**
      * If the user stops the process, this exception will be thrown.
      */
-    public static final RuntimeException abort = new RuntimeException();
+    public static final RuntimeException abort = new RuntimeException() {
+        private static final long serialVersionUID = 5361322877988412432L;
+        public Throwable fillInStackTrace() {
+            return this;
+        }
+    };
     
     /** Empty string to pass to the validator. **/
     public static final XMLString EMPTY_STRING = new XMLString();



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to