Bug 49250 - alias getCause for getWrappedThrowable in SoftException
Summary: alias getCause for getWrappedThrowable in SoftException
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2   Edit
Assignee: Andrew Clement CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-21 15:01 EST by Wes Isberg CLA
Modified: 2004-01-07 12:26 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wes Isberg CLA 2003-12-21 15:01:36 EST
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.
Comment 1 Andrew Clement CLA 2004-01-07 08:34:45 EST
getCause() on SoftException has been added.  Testcase added to verify it works 
as expected on 1.3 JVMs.  Adrian is integrating the patch right now ...