Skip to content

Commit

Permalink
Remove the deprecated JspException.getRootCause
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Oct 19, 2022
1 parent c1e178b commit a61dbc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
20 changes: 3 additions & 17 deletions api/src/main/java/jakarta/servlet/jsp/JspException.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2020 Oracle and/or its affiliates and others.
* Copyright (c) 1997, 2022 Oracle and/or its affiliates and others.
* All rights reserved.
* Copyright 2004 The Apache Software Foundation
*
Expand Down Expand Up @@ -47,8 +47,7 @@ public JspException(String msg) {
* Constructs a new <code>JspException</code> with the specified detail message and cause.
*
* @param message a <code>String</code> specifying the text of the exception message
* @param cause the cause which is saved for later retrieval by the {@link #getCause()} and
* {@link #getRootCause()} methods.
* @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
*
* @see java.lang.Exception#Exception(String, Throwable)
*/
Expand All @@ -59,24 +58,11 @@ public JspException(String message, Throwable cause) {
/**
* Constructs a new <code>JspException</code> with the specified cause.
*
* @param cause the cause which is saved for later retrieval by the {@link #getCause()} and {@link #getRootCause()}
* methods.
* @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
*
* @see java.lang.Exception#Exception(Throwable)
*/
public JspException(Throwable cause) {
super(cause);
}

/**
* Returns the exception that caused this JSP exception.
*
* @return the <code>Throwable</code> that caused this JSP exception
*
* @deprecated As of JSP 2.1, replaced by {@link #getCause()}
*/
@Deprecated
public Throwable getRootCause() {
return getCause();
}
}
2 changes: 2 additions & 0 deletions spec/src/main/asciidoc/ServerPages.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11556,6 +11556,8 @@ Jakarta Server Pages specification. This appendix is non-normative.

* Remove the deprecated `BodyTag.EVAL_BODY_TAG` constant.

* Remove the deprecated `JspException.getRootCause`.

=== Changes between JSP 3.1 and JSP 3.0

* Deprecate methods that override `ELResolver.getFeatureDescriptors()` as that
Expand Down

0 comments on commit a61dbc2

Please sign in to comment.