X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id AFFD311F6928 for ; Tue, 28 Mar 2006 16:47:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12881-02-2 for ; Tue, 28 Mar 2006 16:47:38 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id 2442E11F6922 for ; Tue, 28 Mar 2006 16:47:35 -0400 (AST) Received: (qmail 20646 invoked by uid 1112); 28 Mar 2006 20:47:25 -0000 Date: Tue, 28 Mar 2006 15:47:25 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Tom Lane cc: Dave Cramer , pgsql-jdbc@postgreSQL.org Subject: Re: gcj has a lot of complaints about 8.1-405 release In-Reply-To: <26389.1143515394@sss.pgh.pa.us> Message-ID: References: <17770.1143496710@sss.pgh.pa.us> <3FCF10DA-5DCD-402A-8148-9B559A02D9FB@fastcrypt.com> <24454.1143498854@sss.pgh.pa.us> <24982.1143502339@sss.pgh.pa.us> <26389.1143515394@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.118 required=5 tests=[AWL=0.118] X-Spam-Score: 0.118 X-Spam-Level: X-Archive-Number: 200603/131 X-Sequence-Number: 14912 On Mon, 27 Mar 2006, Tom Lane wrote: > BTW, one Red Hatter had this to say: > >> Yeah, AFAIAC this is a bug in ant. Really, the build file should be using >> ${java.version} instead of ${ant.java.version} to avoid this problem, IMHO. >> I ran into a similar issue with the Eclipse SDK. > The difference is that java.version will return things like 1.4.2_08 instead of just 1.4, so they are not equivalent. ant doesn't offer a lot of tools to parse such a string, the best you could do would be a global substring match. Trying to find 1.4 would match 1.1.4 as well as 1.4.2 though. Since we don't support 1.1 builds we could do this, but it seems a little fragile with perhaps other vendors using different format strings. The best solution for older ant users might be to duplicate the checks ant makes for ant.java.version in our own build file. That way we can put in the latest updates and not require an upgrade. Kris Jurka