pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Buildfarm test failures on JDK 5
7+ messages / 4 participants
[nested] [flat]

* Buildfarm test failures on JDK 5
@ 2014-05-16 09:52 Mike Fowler <mike@mlfowler.com>
  2014-05-16 10:13 ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Mike Fowler @ 2014-05-16 09:52 UTC (permalink / raw)
  To: pgsql-jdbc

The PG-JDBC buildfarm member
(http://www.pgbuildfarm.org/cgi-bin/show_status.pl?member=piapiac) has
been failing to build for JDK 5 for the last 18 days. I've attached a
patch that corrects the tests that have been added that used methods
introduced in JDK 6. Apologies for not noticing the issue sooner - I
really ought to but some sort of alerting in place!

Kind regards,
-- 
Mike Fowler
Registered Linux user: 379787

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

Attachments:

jdk5-fix.patch (text/x-diff, 2.2K) download *** a/org/postgresql/test/jdbc2/BlobTransactionTest.java --- b/org/postgresql/test/jdbc2/BlobTransactionTest.java *************** *** 13,24 **** import junit.framework.TestCase; import java.io.*; import java.sql.*; - import java.util.Arrays; - import java.util.Collections; import javax.sql.rowset.serial.SerialBlob; - import org.postgresql.largeobject.*; /** * Test that oid/lob are accessible in concurrent connection, in presence of the lo_manage trigger --- 13,21 ---- *************** *** 100,111 **** public class BlobTransactionTest extends TestCase while((d = is.read()) != -1) { if (readPos == result.length) { ! result = Arrays.copyOf(result, result.length * 2); } result[readPos++] = (byte)d; } ! return Arrays.copyOf(result, readPos); } public void testConcurrentReplace() throws SQLException, IOException { --- 97,114 ---- while((d = is.read()) != -1) { if (readPos == result.length) { ! result = resizeArray(result, result.length * 2); } result[readPos++] = (byte)d; } ! return resizeArray(result, readPos); ! } ! ! private byte[] resizeArray(byte [] original, int length) { ! byte [] copy = new byte[length]; ! System.arraycopy(original, 0, copy, 0, original.length); ! return copy; } public void testConcurrentReplace() throws SQLException, IOException { *** a/org/postgresql/test/jdbc2/CopyTest.java --- b/org/postgresql/test/jdbc2/CopyTest.java *************** *** 281,287 **** public class CopyTest extends TestCase { { con.setAutoCommit(false); con.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ); ! CopyManager manager = con.unwrap(PGConnection.class).getCopyAPI(); Statement stmt = con.createStatement(); --- 281,287 ---- { con.setAutoCommit(false); con.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ); ! CopyManager manager = ((PGConnection) con).getCopyAPI(); Statement stmt = con.createStatement();
^ permalink raw reply [nested|flat] 7+ messages in thread

* Re: Buildfarm test failures on JDK 5
  2014-05-16 09:52 Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
@ 2014-05-16 10:13 ` Dave Cramer <pg@fastcrypt.com>
  2014-05-16 11:29   ` Re: Buildfarm test failures on JDK 5 Stephen Nelson <stephen@eccostudio.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Dave Cramer @ 2014-05-16 10:13 UTC (permalink / raw)
  To: Mike Fowler <mike@mlfowler.com>; +Cc: pgsql-jdbc

Hey Mike,

Thanks for this.

With java 1.5 eol quite a while ago I am wondering if we shouldn't stop
writing code for it ?

Thoughts ?

Dave Cramer

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


On 16 May 2014 05:52, Mike Fowler <mike@mlfowler.com> wrote:

> The PG-JDBC buildfarm member
> (http://www.pgbuildfarm.org/cgi-bin/show_status.pl?member=piapiac) has
> been failing to build for JDK 5 for the last 18 days. I've attached a
> patch that corrects the tests that have been added that used methods
> introduced in JDK 6. Apologies for not noticing the issue sooner - I
> really ought to but some sort of alerting in place!
>
> Kind regards,
> --
> Mike Fowler
> Registered Linux user: 379787
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
>

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

* Re: Buildfarm test failures on JDK 5
  2014-05-16 09:52 Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
  2014-05-16 10:13 ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
@ 2014-05-16 11:29   ` Stephen Nelson <stephen@eccostudio.com>
  2014-05-16 12:22     ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Stephen Nelson @ 2014-05-16 11:29 UTC (permalink / raw)
  To: pgsql-jdbc

On Fri, May 16, 2014 at 11:13 AM, Dave Cramer <pg@fastcrypt.com> wrote:
>
> With java 1.5 eol quite a while ago I am wondering if we shouldn't stop
> writing code for it ?
>
> Thoughts ?

Unless any organisation requires Java 5 support I'd tend to agree that
new code shouldn't support it. What's the driver policy on supporting
Java versions given that 8 is now out?


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



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

* Re: Buildfarm test failures on JDK 5
  2014-05-16 09:52 Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
  2014-05-16 10:13 ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  2014-05-16 11:29   ` Re: Buildfarm test failures on JDK 5 Stephen Nelson <stephen@eccostudio.com>
@ 2014-05-16 12:22     ` Dave Cramer <pg@fastcrypt.com>
  2014-05-16 13:16       ` Re: Buildfarm test failures on JDK 5 Glenn Holmer <shadowm@lyonlabs.org>
  0 siblings, 1 reply; 7+ messages in thread

From: Dave Cramer @ 2014-05-16 12:22 UTC (permalink / raw)
  To: Stephen Nelson <stephen@eccostudio.com>; +Cc: pgsql-jdbc

I'm of the opinion that we backpatch any bugs below 1.7

new code works with 1.7 and up

thoughts ?

Dave Cramer

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


On 16 May 2014 07:29, Stephen Nelson <stephen@eccostudio.com> wrote:

> On Fri, May 16, 2014 at 11:13 AM, Dave Cramer <pg@fastcrypt.com> wrote:
> >
> > With java 1.5 eol quite a while ago I am wondering if we shouldn't stop
> > writing code for it ?
> >
> > Thoughts ?
>
> Unless any organisation requires Java 5 support I'd tend to agree that
> new code shouldn't support it. What's the driver policy on supporting
> Java versions given that 8 is now out?
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

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

* Re: Buildfarm test failures on JDK 5
  2014-05-16 09:52 Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
  2014-05-16 10:13 ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  2014-05-16 11:29   ` Re: Buildfarm test failures on JDK 5 Stephen Nelson <stephen@eccostudio.com>
  2014-05-16 12:22     ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
@ 2014-05-16 13:16       ` Glenn Holmer <shadowm@lyonlabs.org>
  2014-05-19 07:43         ` Re: Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Glenn Holmer @ 2014-05-16 13:16 UTC (permalink / raw)
  To: pgsql-jdbc

On 05/16/2014 07:22 AM, Dave Cramer wrote:
> I'm of the opinion that we backpatch any bugs below 1.7
>
> new code works with 1.7 and up
>
> thoughts ?

+1

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



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

* Re: Buildfarm test failures on JDK 5
  2014-05-16 09:52 Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
  2014-05-16 10:13 ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  2014-05-16 11:29   ` Re: Buildfarm test failures on JDK 5 Stephen Nelson <stephen@eccostudio.com>
  2014-05-16 12:22     ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  2014-05-16 13:16       ` Re: Buildfarm test failures on JDK 5 Glenn Holmer <shadowm@lyonlabs.org>
@ 2014-05-19 07:43         ` Mike Fowler <mike@mlfowler.com>
  2014-05-20 13:00           ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Mike Fowler @ 2014-05-19 07:43 UTC (permalink / raw)
  To: ; +Cc: pgsql-jdbc

On Fri, May 16, 2014 2:16 pm, Glenn Holmer wrote:
> On 05/16/2014 07:22 AM, Dave Cramer wrote:
>
>> I'm of the opinion that we backpatch any bugs below 1.7
>>
>>
>> new code works with 1.7 and up
>>
>> thoughts ?
>
> +1
>

+1

I've switched off JDK 5 from my build farm so it should start reporting
green with the next builds. Someone will need to update the downloads
section to reflect the fact that JDK 6 is now the minimum.

Kind regards,
-- 
Mike Fowler
Registered Linux user: 379787



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



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

* Re: Buildfarm test failures on JDK 5
  2014-05-16 09:52 Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
  2014-05-16 10:13 ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  2014-05-16 11:29   ` Re: Buildfarm test failures on JDK 5 Stephen Nelson <stephen@eccostudio.com>
  2014-05-16 12:22     ` Re: Buildfarm test failures on JDK 5 Dave Cramer <pg@fastcrypt.com>
  2014-05-16 13:16       ` Re: Buildfarm test failures on JDK 5 Glenn Holmer <shadowm@lyonlabs.org>
  2014-05-19 07:43         ` Re: Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
@ 2014-05-20 13:00           ` Dave Cramer <pg@fastcrypt.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Dave Cramer @ 2014-05-20 13:00 UTC (permalink / raw)
  To: Mike Fowler <mike@mlfowler.com>; +Cc: pgsql-jdbc

I'll put it on my todo list ;)

Dave Cramer

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


On 19 May 2014 03:43, Mike Fowler <mike@mlfowler.com> wrote:

> On Fri, May 16, 2014 2:16 pm, Glenn Holmer wrote:
> > On 05/16/2014 07:22 AM, Dave Cramer wrote:
> >
> >> I'm of the opinion that we backpatch any bugs below 1.7
> >>
> >>
> >> new code works with 1.7 and up
> >>
> >> thoughts ?
> >
> > +1
> >
>
> +1
>
> I've switched off JDK 5 from my build farm so it should start reporting
> green with the next builds. Someone will need to update the downloads
> section to reflect the fact that JDK 6 is now the minimum.
>
> Kind regards,
> --
> Mike Fowler
> Registered Linux user: 379787
>
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

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


end of thread, other threads:[~2014-05-20 13:00 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-05-16 09:52 Buildfarm test failures on JDK 5 Mike Fowler <mike@mlfowler.com>
2014-05-16 10:13 ` Dave Cramer <pg@fastcrypt.com>
2014-05-16 11:29   ` Stephen Nelson <stephen@eccostudio.com>
2014-05-16 12:22     ` Dave Cramer <pg@fastcrypt.com>
2014-05-16 13:16       ` Glenn Holmer <shadowm@lyonlabs.org>
2014-05-19 07:43         ` Mike Fowler <mike@mlfowler.com>
2014-05-20 13:00           ` Dave Cramer <pg@fastcrypt.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