Its specifically to address bad user code. For example:
http://issues.apache.org/bugzilla/show_bug.cgi?id=39088
Its the case where ServletException.getCause() returns something an
instance of "user's custom Throwable" .. then the "user's custom
Throwable" returns itself as the root cause.
-Tim
Remy Maucherat wrote:
Tim Funk wrote:
Adding this to both loops may be helpful too:
if (rootCause == rootCause.getCause()) {
break;
}
Throwable.getCause does return null in that case, so the loop should get
out:
public Throwable getCause() {
return (cause==this ? null : cause);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]