commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Caswell" <ste...@caswell.name>
Subject RE: [lang] Exception stack trace order
Date Wed, 16 Apr 2003 20:03:32 GMT



Steven Caswell
steven@caswell.name
a.k.a Mungo Knotwise of Michel Delving
"One ring to rule them all, one ring to find them..."


> -----Original Message-----
> From: scolebourne@btopenworld.com 
> [mailto:scolebourne@btopenworld.com] 
> Sent: Wednesday, April 16, 2003 6:52 AM
> To: commons-dev@jakarta.apache.org
> Subject: [lang] Exception stack trace order
> 
> 
> I support:
> 
> - Reversing the default stack trace order.

I'm ambivalent on the order. I didn't mind the order we have, and I don't
necessarily agree that we should change it just to match the JDK, but I'm
not opposed to changing it. I think I saw Henri say that someone had
submitted the changes. Otherwise I'll be glad to take a stab at it. So here
is my +1.

> 
> - Having a static flag set on ExceptionUtils/NestableDelegate 
> to reverse order (back to current setup)

Same for this one. Is there anyone who really wants to keep the previous
order, or is the flag for backward compability?

> 
> - Using 1.4 getCause as appropriate
> 
> - Having the ability to have truncated stack traces (but 
> doesn't some of this exist in ExceptionUtils?)
> 
> Stephen
> 
> >  from:    Henri Yandell <bayard@generationjava.com>
> > Still trying to put this one to bed. Lots of interesting 
> debate on the 
> > bugzilla report for this:
> > 
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=14357
> > 
> > Steven Caswell, do you have a view on it? You're the most 
> active name 
> > frequently on the author javadoc for exception.* :) Mohan 
> has attached 
> > a set of fixes. One definite nice one is that it uses the JDK 1.4 
> > getCause method if available.
> > 
> > Anyone else with a view? Alex seems to have  1'd my 
> suggestion below 
> > of changing, but also been against it on the bugzilla? ;)
> > 
> > This is all that's really in the way of Lang 2.0 for us, so 
> getting it 
> > solved would be nice.
> > 
> > Hen
> > 
> > On Sun, 30 Mar 2003, Alex Chaffee / Purple Technology wrote:
> > 
> > > On Sun, Mar 30, 2003 at 12:18:03AM -0500, Henri Yandell wrote:
> > > >
> > > > As well as the direction, it strikes me that there's another 
> > > > issue. Whether to show the stack-trace for all 
> exceptions in the 
> > > > list, or to show a message for one of them. I think it almost 
> > > > calls for an ExceptionFormat object :)
> > >
> > > You're kidding, but I honestly think that exceptions are an area 
> > > where model-view separation could be productively 
> applied.  Assert 
> > > failures are another.  I'm imagining an exception that uses 
> > > java.text.MessageFormat...
> > >
> > > > Anyway, our default behaviour should probably match the JDK. I 
> > > > seem to recall we were in favour of this before, as we disliked 
> > > > the static-solution suggested by the Bugzilla entry.
> > > >
> > > > All in favour?
> > >
> > >  1
> > >
> > >
> > > --
> > > Alex Chaffee                               mailto:alex@jguru.com
> > > Purple Technology - Code and Consulting    
> http://www.purpletech.com/
> > > jGuru - Java News and FAQs     
>             http://www.jguru.com/alex/
> > > Gamelan - the Original Java site           http://www.gamelan.com/
> > > Stinky - Art and Angst                     http://www.stinky.com/
> > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
> commons-dev-help@jakarta.apache.org
> > >
> > >
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message