Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNmJ3-0004Ig-5N for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 15:10:13 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNmIx-0001LS-Sw for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 15:10:11 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TNmIx-0006NO-8o for pgsql-bugs@postgresql.org; Mon, 15 Oct 2012 08:10:07 -0700 Date: Mon, 15 Oct 2012 08:10:07 -0700 (PDT) From: seancompusult To: pgsql-bugs@postgresql.org Message-ID: <1350313807264-5728220.post@n5.nabble.com> In-Reply-To: References: Subject: Re: BUG #7577: JDBC Driver - Compiled with Java 7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) X-Archive-Number: 201210/146 X-Sequence-Number: 34446 To add to this, it's not just a question of making more sense. Compiling the code with Java 7 means the generated class files are version 51, which is not acceptable to a Java 5 JRE - it wants version 49. So the existing pre-built jar cannot simply be dropped into a Java 5 app. To get around this I'm trying to build from source without much more success. When I follow the recommendation of using a 1.5 JDK, for some reason ant still craps out with an UnsupportedClassVersionError. I also tried to hack the build.xml to force compilation with source="1.5" and target="1.5", but then the compilation fails like this: compile: [javac] /opt/sean/software/postgresql-jdbc-9.0-802.src/build.xml:120: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 176 source files to /opt/sean/software/postgresql-jdbc-9.0-802.src/build [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5 [javac] /opt/sean/software/postgresql-jdbc-9.0-802.src/org/postgresql/Driver.java:47: error: org.postgresql.Driver is not abstract and does not override abstract method getParentLogger() in java.sql.Driver [javac] public class Driver implements java.sql.Driver [javac] ^ [javac] /opt/sean/software/postgresql-jdbc-9.0-802.src/org/postgresql/ds/PGConnectionPoolDataSource.java:39: error: PGConnectionPoolDataSource is not abstract and does not override abstract method getParentLogger() in CommonDataSource [javac] public class PGConnectionPoolDataSource extends BaseDataSource implements Serializable, ConnectionPoolDataSource [javac] ^ [javac] /opt/sean/software/postgresql-jdbc-9.0-802.src/org/postgresql/ds/PGPooledConnection.java:26: error: PGPooledConnection is not abstract and does not override abstract method removeStatementEventListener(StatementEventListener) in PooledConnection etc. Does anyone have a solution for people like me who must use Java 5? Thanks, Sean -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-7577-JDBC-Driver-Compiled-with-Java-7-tp5726254p5728220.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.