Date: Mon, 5 Jun 2023 20:31:43 +0800
Subject: 8283994: Make Xerces DatatypeException stackless

Bug url: https://bugs.openjdk.org/browse/JDK-8283994
---
 .../apache/xerces/internal/impl/dv/DatatypeException.java   | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/DatatypeException.java b/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/DatatypeException.java
index 17efe6aa0..9a428649a 100644
--- a/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/DatatypeException.java
+++ b/jaxp/src/com/sun/org/apache/xerces/internal/impl/dv/DatatypeException.java
@@ -107,4 +107,10 @@ public class DatatypeException extends Exception {
 
         return msg;
     }
+
+    @Override
+    public Throwable fillInStackTrace() {
+        // This is an internal exception; the stack trace is irrelevant.
+        return this;
+    }
 }
-- 
2.22.0

