| 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 |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Fuhr | 2006-01-30 05:16:27 | Re: BUG #2217: serial in rule and trigger |
| Previous Message | Neil Conway | 2006-01-30 03:20:47 | Re: [PATCHES] BUG #2221: Bad delimiters allowed in COPY ... |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Guillaume Cottenceau | 2006-01-30 09:39:54 | Re: error note |
| Previous Message | Bernhard Rosenkraenzer | 2006-01-29 12:28:43 | BUG #2220: PostgreSQL-JDBC 8.1-404 fails to compile with ecj |