Skip site navigation (1) Skip section navigation (2)

Re: BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with

From: Kris Jurka <books(at)ejurka(dot)com>
To: Bernhard Rosenkraenzer <bero(at)arklinux(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with
Date: 2006-01-30 03:57:12
Message-ID: Pine.BSO.4.61.0601292251090.11308@leary.csoft.net (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-jdbc

On Sun, 29 Jan 2006, Bernhard Rosenkraenzer wrote:

> Bug reference:      2220
> Description:        PostgreSQL-JDBC 8.1-404 fails to compile with ecj
> Details:
>
> PostgreSQL-JDBC 8.1-404 fails to compile (ecj bytecode compiler w/ gij 4.1
> JDK):
>

This is because the driver dynamically decides what version of the driver 
to build (JDBC2, JDBC3, or JDBC3 w/ generics) at runtime based on the 
current JVM.  You are running ant with a 1.5 JVM, but ecj's default 
-source argument is 1.4, so it's trying to build 1.5 code, but 
interpreting it as 1.4 code which cleary fails.  Adding "source=1.5" in 
the <javac> tag in build.xml fixes this, but that's not a general 
solution because it clearly won't be able to build other versions.  Do you 
have a better solution for runtime determination or specification of the 
version we should try to build.

Kris Jurka

In response to

pgsql-bugs by date

Next:From: Michael FuhrDate: 2006-01-30 05:16:27
Subject: Re: BUG #2217: serial in rule and trigger
Previous:From: Neil ConwayDate: 2006-01-30 03:20:47
Subject: Re: [PATCHES] BUG #2221: Bad delimiters allowed in COPY ...

pgsql-jdbc by date

Next:From: Guillaume CottenceauDate: 2006-01-30 09:39:54
Subject: Re: error note
Previous:From: Bernhard RosenkraenzerDate: 2006-01-29 12:28:43
Subject: BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with ecj

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group