Re: Buildfarm error: Broken compatability with JDK 1.4

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Mike Fowler <mike(at)mlfowler(dot)com>, Mikko Tiihonen <mikko(dot)tiihonen(at)nitorcreations(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Buildfarm error: Broken compatability with JDK 1.4
Date: 2011-09-26 13:41:16
Message-ID: CADK3HHJgLQM0TAFrRggPxn_=U6Phnh4-Jb7Rc+xcOAswQz53Dg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, Sep 26, 2011 at 9:17 AM, Mike Fowler <mike(at)mlfowler(dot)com> 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

Miiko, I'm guessing this is mostly from your patches.

Dave

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Mikko Tiihonen 2011-09-26 13:46:19 Re: Buildfarm error: Broken compatability with JDK 1.4
Previous Message Mike Fowler 2011-09-26 13:17:09 Buildfarm error: Broken compatability with JDK 1.4