Author: mrglavas
Date: Mon Oct 26 20:49:13 2015
New Revision: 1710696
URL: http://svn.apache.org/viewvc?rev=1710696&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/branches/xml-schema-1.1-dev/src/org/apache/xerces/dom/DOMNormalizer.java
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/dom/DOMNormalizer.java
URL:
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/dom/DOMNormalizer.java?rev=1710696&r1=1710695&r2=1710696&view=diff
==============================================================================
---
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/dom/DOMNormalizer.java
(original)
+++
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/dom/DOMNormalizer.java
Mon Oct 26 20:49:13 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]