Skip to content

Commit d5d207e

Browse files
committed
JXPathException.JXPathException(Throwable) now remembers its Throwable
cause argument
1 parent 6f371f9 commit d5d207e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ The <action> type attribute can be add,update,fix,remove.
127127
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate InfoSetUtil.InfoSetUtil().</action>
128128
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate Constants.Constants().</action>
129129
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate Parser.Parser().</action>
130+
<action dev="ggregory" type="fix" due-to="Gary Gregory">JXPathException.JXPathException(Throwable) now remembers its Throwable cause argument.</action>
130131
<!-- ADD -->
131132
<action issue="JXPATH-123" dev="mbenson" type="add">
132133
XPath function "ends-with" is not implemented (although "starts-with" is).

src/main/java/org/apache/commons/jxpath/JXPathException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public JXPathException(final String msg, final Throwable cause) {
5555
* @param cause The exception to be encapsulated in a JXPathException.
5656
*/
5757
public JXPathException(final Throwable cause) {
58-
super(cause.toString());
58+
super(cause);
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)