stack traces are evil (was: Re: Crystal Reports / PostgreSQL)

From: Vadim Nasardinov <vadimn(at)redhat(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: stack traces are evil (was: Re: Crystal Reports / PostgreSQL)
Date: 2005-02-22 15:48:08
Message-ID: 200502221048.08706@vadim.nasardinov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thursday 10 February 2005 16:08, Oliver Jowett wrote:
> > Any ad-hoc parsing is easy to get wrong by forgetting corner
> > cases. I'm not saying it can't be done correctly, just that we
> > shouldn't bother.
>
> Especially given that different JVMs format stack traces
> differently, and Throwable.getStackTrace() is allowed to omit stack
> frames.

You're right as usual.

Here's a somewhat off-topic example of when relying on stack traces
backfires:

http://weblog.ikvm.net/PermaLink.aspx?guid=245f4ca5-0512-4e66-a6c6-fa4d4af697ef

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nico 2005-02-22 16:33:20 Re: making a rule and know when it is violated
Previous Message Nico 2005-02-22 11:06:17 Re: making a rule and know when it is violated