8283994: Make Xerces DatatypeException stackless

Reviewed-by: joehw, jpai
This commit is contained in:
Aleksey Shipilev 2022-04-28 08:30:24 +00:00
parent 4f2e4c7c24
commit 85f8d14edf

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
@ -35,7 +35,7 @@ import jdk.xml.internal.SecuritySupport;
*
* @author Sandy Gao, IBM
*
* @LastModified: Oct 2021
* @LastModified: Mar 2022
*/
public class DatatypeException extends Exception {
@ -108,4 +108,10 @@ public class DatatypeException extends Exception {
return msg;
}
@Override
public Throwable fillInStackTrace() {
// This is an internal exception; the stack trace is irrelevant.
return this;
}
}