Project: AspectJ
Bug 49250 alias getCause for getWrappedThrowable in SoftException
Reported: 2003-12-21 15:01:36 | Status: resolved fixed

SoftException should implement getCause(): public Throwable getCause() { return inner; } (As pointed out by Ramnivas, misc mail messages, code comments...) Using getCause() means the chain should print as expected in 1.4+, esp. when SoftException is itself wrapped as a RemoteException. Since getCause() replicates getWrappedThrowable(), we could deprecate that, but we must continue to support it to maintain upwards binary compatibility in the runtime classes.

Files changed in fix:
runtime/src/org/aspectj/lang/SoftException.java