Hello Andrea: I have your patch installed on my machine but I want to make sure I understand the intent. In your example:
public class MyException extends Exception { public MyException(String msg) { super(msg); } public MyException(String msg, Throwable cause) { super(msg); ExceptionUtils.setCause(this, cause); } } If this code runs in a JRE >= 1.4 , the cause is set in the target. If this code runs in a JRE < 1.4, nothing happens. So the code is portable but the behavior is different. Is the intent to write code in a JRE < 1.4 that will behave OK on a JRE >= 1.4? Why not subclass NestableException and get the portability AND the proper behavior? Thanks, Gary > -----Original Message----- > From: Andrea Rombaldi [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 03, 2006 10:44 AM > To: Jakarta Commons Developers List > Subject: Re: [lang] [PATCH] new ExceptionUtils.setCause() method > > Hi, > > this is just a reminder for my trivial patch :-) > > Ciao, > Andrea. > > > > DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG* > > RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT > > <http://issues.apache.org/bugzilla/show_bug.cgi?id=37574>. > > ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND* > > INSERTED IN THE BUG DATABASE. > > > > http://issues.apache.org/bugzilla/show_bug.cgi?id=37574 > > > > > > > > > > > > ------- Additional Comments From [EMAIL PROTECTED] 2005-12-06 > > 01:19 ------- > > I'll try to take a look this week. > > > > -- > > Configure bugmail: > > http://issues.apache.org/bugzilla/userprefs.cgi?tab=email > > ------- You are receiving this mail because: ------- > > You reported the bug, or are watching the reporter. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]