pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Buildfarm error: Broken compatability with JDK 1.4
6+ messages / 3 participants
[nested] [flat]

* Buildfarm error: Broken compatability with JDK 1.4
@ 2011-09-26 13:17 Mike Fowler <mike@mlfowler.com>
  2011-09-26 13:41 ` Re: Buildfarm error: Broken compatability with JDK 1.4 Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Mike Fowler @ 2011-09-26 13:17 UTC (permalink / raw)
  To: pgsql-jdbc

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.

Regards,

-- 
Mike Fowler
Registered Linux user: 379787

The Call for Papers for is open for FLOSS UK, contact postgresql2012 AT
flossuk DOT org for details.




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Buildfarm error: Broken compatability with JDK 1.4
  2011-09-26 13:17 Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
@ 2011-09-26 13:41 ` Dave Cramer <pg@fastcrypt.com>
  2011-09-26 13:46   ` Re: Buildfarm error: Broken compatability with JDK 1.4 Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Dave Cramer @ 2011-09-26 13:41 UTC (permalink / raw)
  To: Mike Fowler <mike@mlfowler.com>; Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>; +Cc: pgsql-jdbc

On Mon, Sep 26, 2011 at 9:17 AM, Mike Fowler <mike@mlfowler.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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Buildfarm error: Broken compatability with JDK 1.4
  2011-09-26 13:17 Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
  2011-09-26 13:41 ` Re: Buildfarm error: Broken compatability with JDK 1.4 Dave Cramer <pg@fastcrypt.com>
@ 2011-09-26 13:46   ` Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
  2011-09-26 13:56     ` Re: Buildfarm error: Broken compatability with JDK 1.4 Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Mikko Tiihonen @ 2011-09-26 13:46 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: Mike Fowler <mike@mlfowler.com>; pgsql-jdbc

On 09/26/2011 04:41 PM, Dave Cramer wrote:
> On Mon, Sep 26, 2011 at 9:17 AM, Mike Fowler<mike@mlfowler.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
>
> 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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Buildfarm error: Broken compatability with JDK 1.4
  2011-09-26 13:17 Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
  2011-09-26 13:41 ` Re: Buildfarm error: Broken compatability with JDK 1.4 Dave Cramer <pg@fastcrypt.com>
  2011-09-26 13:46   ` Re: Buildfarm error: Broken compatability with JDK 1.4 Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
@ 2011-09-26 13:56     ` Dave Cramer <pg@fastcrypt.com>
  2011-09-26 14:15       ` Re: Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Dave Cramer @ 2011-09-26 13:56 UTC (permalink / raw)
  To: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>; +Cc: Mike Fowler <mike@mlfowler.com>; pgsql-jdbc

Did I miss something ? I did not see a patch from Mike.

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca




On Mon, Sep 26, 2011 at 9:46 AM, Mikko Tiihonen
<mikko.tiihonen@nitorcreations.com> wrote:
> On 09/26/2011 04:41 PM, Dave Cramer wrote:
>>
>> On Mon, Sep 26, 2011 at 9:17 AM, Mike Fowler<mike@mlfowler.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
>>
>> 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
>



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Buildfarm error: Broken compatability with JDK 1.4
  2011-09-26 13:17 Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
  2011-09-26 13:41 ` Re: Buildfarm error: Broken compatability with JDK 1.4 Dave Cramer <pg@fastcrypt.com>
  2011-09-26 13:46   ` Re: Buildfarm error: Broken compatability with JDK 1.4 Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
  2011-09-26 13:56     ` Re: Buildfarm error: Broken compatability with JDK 1.4 Dave Cramer <pg@fastcrypt.com>
@ 2011-09-26 14:15       ` Mike Fowler <mike@mlfowler.com>
  2011-09-26 14:17         ` Re: Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Mike Fowler @ 2011-09-26 14:15 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>; pgsql-jdbc


> Did I miss something ? I did not see a patch from Mike.
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca

It might help if I attached the patch, apologies!


-- 
Mike Fowler
Registered Linux user: 379787




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Buildfarm error: Broken compatability with JDK 1.4
  2011-09-26 13:17 Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
  2011-09-26 13:41 ` Re: Buildfarm error: Broken compatability with JDK 1.4 Dave Cramer <pg@fastcrypt.com>
  2011-09-26 13:46   ` Re: Buildfarm error: Broken compatability with JDK 1.4 Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
  2011-09-26 13:56     ` Re: Buildfarm error: Broken compatability with JDK 1.4 Dave Cramer <pg@fastcrypt.com>
  2011-09-26 14:15       ` Re: Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
@ 2011-09-26 14:17         ` Mike Fowler <mike@mlfowler.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Mike Fowler @ 2011-09-26 14:17 UTC (permalink / raw)
  To: Dave Cramer <pg@fastcrypt.com>; +Cc: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>; pgsql-jdbc

>
>> Did I miss something ? I did not see a patch from Mike.
>>
>> Dave Cramer
>>
>> dave.cramer(at)credativ(dot)ca
>> http://www.credativ.ca
>
> It might help if I attached the patch, apologies!
>


How embarrassing. I'm using an uncopertive web client. The attach button
is right next to the send button and I missed. The patch really is
attached this time :-/

-- 
Mike Fowler
Registered Linux user: 379787

The Call for Papers for is open for FLOSS UK, contact postgresql2012 AT
flossuk DOT org for details.

Attachments:

jdk1.4.patch (application/octet-stream, 2.1K) download Index: org/postgresql/ds/common/PGObjectFactory.java =================================================================== RCS file: /cvsroot/jdbc/pgjdbc/org/postgresql/ds/common/PGObjectFactory.java,v retrieving revision 1.8 diff -c -r1.8 PGObjectFactory.java *** org/postgresql/ds/common/PGObjectFactory.java 22 Sep 2011 12:53:24 -0000 1.8 --- org/postgresql/ds/common/PGObjectFactory.java 26 Sep 2011 09:00:19 -0000 *************** *** 116,122 **** String binaryTransfer = getProperty(ref, "binaryTransfer"); if (binaryTransfer != null) ! ds.setBinaryTransfer(Boolean.parseBoolean(binaryTransfer)); return ds; } --- 116,122 ---- String binaryTransfer = getProperty(ref, "binaryTransfer"); if (binaryTransfer != null) ! ds.setBinaryTransfer(Boolean.getBoolean(binaryTransfer)); return ds; } Index: org/postgresql/jdbc2/AbstractJdbc2ResultSet.java =================================================================== RCS file: /cvsroot/jdbc/pgjdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java,v retrieving revision 1.113 diff -c -r1.113 AbstractJdbc2ResultSet.java *** org/postgresql/jdbc2/AbstractJdbc2ResultSet.java 22 Sep 2011 12:53:25 -0000 1.113 --- org/postgresql/jdbc2/AbstractJdbc2ResultSet.java 26 Sep 2011 09:00:19 -0000 *************** *** 3126,3132 **** PSQLState.DATA_TYPE_MISMATCH); } if (val < minVal || val > maxVal) { ! throw new PSQLException(GT.tr("Bad value for type {0} : {1}", new Object[]{targetType, Long.valueOf(val)}), PSQLState.NUMERIC_VALUE_OUT_OF_RANGE); } return val; --- 3126,3132 ---- PSQLState.DATA_TYPE_MISMATCH); } if (val < minVal || val > maxVal) { ! throw new PSQLException(GT.tr("Bad value for type {0} : {1}", new Object[]{targetType, new Long(val)}), PSQLState.NUMERIC_VALUE_OUT_OF_RANGE); } return val;
^ permalink raw reply [nested|flat] 6+ messages in thread


end of thread, other threads:[~2011-09-26 14:17 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-09-26 13:17 Buildfarm error: Broken compatability with JDK 1.4 Mike Fowler <mike@mlfowler.com>
2011-09-26 13:41 ` Dave Cramer <pg@fastcrypt.com>
2011-09-26 13:46   ` Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
2011-09-26 13:56     ` Dave Cramer <pg@fastcrypt.com>
2011-09-26 14:15       ` Mike Fowler <mike@mlfowler.com>
2011-09-26 14:17         ` Mike Fowler <mike@mlfowler.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox