X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 602498B9E0A for ; Tue, 22 Feb 2005 15:47:13 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08150-02 for ; Tue, 22 Feb 2005 15:47:05 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 3A1518B9CB7 for ; Tue, 22 Feb 2005 15:47:08 +0000 (GMT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1MFl8sI027351 for ; Tue, 22 Feb 2005 10:47:08 -0500 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1MFl8K27883 for ; Tue, 22 Feb 2005 10:47:08 -0500 Received: from vpn83-138.boston.redhat.com (vpn83-138.boston.redhat.com [172.16.83.138]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j1MFl7wO013489 for ; Tue, 22 Feb 2005 10:47:08 -0500 From: Vadim Nasardinov Organization: Red Hat / Westford To: pgsql-jdbc@postgresql.org Subject: stack traces are evil (was: Re: Crystal Reports / PostgreSQL) Date: Tue, 22 Feb 2005 10:48:08 -0500 User-Agent: KMail/1.7.1 References: <420BCD50.1000608@opencloud.com> In-Reply-To: <420BCD50.1000608@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502221048.08706@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.019 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/152 X-Sequence-Number: 12332 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