From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: class file format issue |
Date: | 2015-02-26 02:51:56 |
Message-ID: | CADK3HHKoMTghqWudO=r9=t-8n0s6uDwpGQDD=iM3o1c6MOZaLg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
I"ve just uploaded a new jar if you have time can you check ?
Thanks again!
Dave Cramer
dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
On 25 February 2015 at 21:41, Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
> Peter,
>
> Thanks for catching this!
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
> On 25 February 2015 at 15:23, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
>
>> I appears to me that the latest jdbc4 driver is compiled with a wrong
>> class file format.
>>
>> unzip -q -c postgresql-9.4-1201.jdbc41.jar
>> org/postgresql/PGStatement.class | od -t x1u1 -N 10
>> 0000000 ca fe ba be 00 00 00 33 00 23
>> 202 254 186 190 0 0 0 51 0 35
>>
>> The above is OK.
>>
>> unzip -q -c postgresql-9.4-1201.jdbc4.jar
>> org/postgresql/PGStatement.class | od -t x1u1 -N 10
>> 0000000 ca fe ba be 00 00 00 33 00 23
>> 202 254 186 190 0 0 0 51 0 35
>>
>> That should be "50" instead of "51".
>>
>> As a result, loading this driver with Java 1.6.0 results in
>>
>> java.lang.UnsupportedClassVersionError: org/postgresql/Driver :
>> Unsupported major.minor version 51.0
>>
>>
>> --
>> Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-jdbc
>>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Ruth Melendo | 2015-02-26 16:34:33 | Lock in bdr |
Previous Message | Dave Cramer | 2015-02-26 02:41:59 | Re: class file format issue |