pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Fowler <mike@mlfowler.com>
To: pgsql-jdbc@postgresql.org
Subject: Buildfarm compile failure
Date: Tue, 19 Aug 2014 09:17:40 +0100
Message-ID: <66630223437956cdc76dd6993ba0fe41.squirrel@www.mlfowler.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

My buildfarm member
(http://www.pgbuildfarm.org/cgi-bin/show_status.pl?member=piapiac) started
reporting the following error yesterday which is related to the commit
https://github.com/pgjdbc/pgjdbc/commit/f20437b2a7f8140c81215bc104b0f1109be8263a

compile:
    [javac] /mnt/data/buildarea/REL9_3_STABLE/pgjdbc/build.xml:243:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 174 source files to
/mnt/data/buildarea/REL9_3_STABLE/pgjdbc/build
    [javac]
/mnt/data/buildarea/REL9_3_STABLE/pgjdbc/org/postgresql/jdbc4/Jdbc4Connection.java:21:
org.postgresql.jdbc4.Jdbc4Connection is not abstract and does not
override abstract method haveMinimumServerVersion(int) in
org.postgresql.core.BaseConnection
    [javac] public class Jdbc4Connection extends AbstractJdbc4Connection
implements java.sql.Connection
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

I've attached a patch to implement the missing method.
-- 
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:

haveMinimumServerVersionInt.patch (application/x-download, 747B) download *** a/org/postgresql/jdbc2/AbstractJdbc2Connection.java --- b/org/postgresql/jdbc2/AbstractJdbc2Connection.java *************** *** 1108,1114 **** public abstract class AbstractJdbc2Connection implements BaseConnection */ return (protoConnection.getServerVersion().compareTo(ver) >= 0); ! return protoConnection.getServerVersionNum() >= requiredver; } /* --- 1108,1119 ---- */ return (protoConnection.getServerVersion().compareTo(ver) >= 0); ! else return haveMinimumServerVersion(requiredver); ! } ! ! public boolean haveMinimumServerVersion(int ver) ! { ! return protoConnection.getServerVersionNum() >= ver; } /*

Message-ID: <66630223437956cdc76dd6993ba0fe41.squirrel@www.mlfowler.com>
Permalink:  ../66630223437956cdc76dd6993ba0fe41.squirrel@www.mlfowler.com/
Also on:    postgresql.org/message-id/66630223437956cdc76dd6993ba0fe41.squirrel@www.mlfowler.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mike@mlfowler.com
  Subject: Re: Buildfarm compile failure
  In-Reply-To: <66630223437956cdc76dd6993ba0fe41.squirrel@www.mlfowler.com>
  References: <66630223437956cdc76dd6993ba0fe41.squirrel@www.mlfowler.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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