Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9EA23B5F3B1 for ; Mon, 26 Sep 2011 11:41:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 80243-01-2 for ; Mon, 26 Sep 2011 14:41:10 +0000 (UTC) X-Greylist: delayed 00:43:02.220377 by SQLgrey-1.8.0-rc2 Received: from auth-smtp.nebula.fi (auth-smtp.nebula.fi [217.30.180.105]) by mail.postgresql.org (Postfix) with ESMTP id 9E027B5DC71 for ; Mon, 26 Sep 2011 11:29:35 -0300 (ADT) Received: from quadvadis.localdomain (gw.nitor.fi [83.145.228.24]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.4/8.13.4) with ESMTP id p8QDkGqE013149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Sep 2011 16:46:17 +0300 Message-ID: <4E80822B.7040407@nitorcreations.com> Date: Mon, 26 Sep 2011 16:46:19 +0300 From: Mikko Tiihonen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: Dave Cramer CC: Mike Fowler , pgsql-jdbc@postgresql.org Subject: Re: Buildfarm error: Broken compatability with JDK 1.4 References: <10d990cb9ae2e157a6939fd8345a9f01.squirrel@www.mlfowler.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/118 X-Sequence-Number: 22236 On 09/26/2011 04:41 PM, Dave Cramer wrote: > On Mon, Sep 26, 2011 at 9:17 AM, Mike Fowler wrote: >> Hi, >> >> The JDBC buildfarm has been broken since Friday as I've discovered this >> morning (see >> http://www.pgbuildfarm.org/cgi-bin/show_status.pl?member=piapiac). All >> branches (8.4,9.0,9.1& HEAD) are failing with the same reason: >> >> compile: >> [javac] /home/ubuntu/buildarea/HEAD/pgjdbc/build.xml:125: warning: >> 'includeantruntime' was not set, defaulting to >> build.sysclasspath=last; set to false for repeatable builds >> [javac] Compiling 152 source files to >> /home/ubuntu/buildarea/HEAD/pgjdbc/build >> [javac] >> /home/ubuntu/buildarea/HEAD/pgjdbc/org/postgresql/ds/common/PGObjectFactory.java:119: >> cannot resolve symbol >> [javac] symbol : method parseBoolean (java.lang.String) >> [javac] location: class java.lang.Boolean >> [javac] >> ds.setBinaryTransfer(Boolean.parseBoolean(binaryTransfer)); >> [javac] ^ >> [javac] >> /home/ubuntu/buildarea/HEAD/pgjdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java:3129: >> cannot resolve symbol >> [javac] symbol : method valueOf (long) >> [javac] location: class java.lang.Long >> [javac] throw new PSQLException(GT.tr("Bad value for type >> {0} : {1}", new Object[]{targetType, Long.valueOf(val)}), >> [javac] >> ^ >> [javac] Note: Some input files use or override a deprecated API. >> [javac] Note: Recompile with -deprecation for details. >> [javac] 2 errors >> >> Both of these method calls - Boolean.parseBoolean() and Long.valueOf() - >> are introduced in JDK 1.5. Are we dropping support for 1.4? Given that the >> workaround to maintain 1.4 compatability is so simple (see attached patch) >> I would recommend maintaing support of 1.4. > > > I would agree that we want to keep support for 1.4 > > Mikko, I'm guessing this is mostly from your patches. Yes, my fault. I have tried to stay away from new APIs - the breakage was unintentional. I'll be more careful in the future, but I do not have any older than 1.6 JVM available so it is very useful to have the build farm to catch these errors. If the patch from Mike does not get committed I'll create one tomorrow. -Mikko