pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Sean Hogan <sean@compusult.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: [Spam] Re: BUG #7577: JDBC Driver - Compiled with Java 7
Date: Tue, 16 Oct 2012 20:24:20 +0800
Message-ID: <507D51F4.5020501@ringerc.id.au> (raw)
In-Reply-To: <507D4EC9.3030708@compusult.net>
References: <E1TIuWE-0003nJ-46@wrigleys.postgresql.org>
	<1350313807264-5728220.post@n5.nabble.com>
	<507CC8A6.4070303@ringerc.id.au>
	<507D4EC9.3030708@compusult.net>

On 10/16/2012 08:10 PM, Sean Hogan wrote:
> On 12-10-16 12:08 AM, Craig Ringer wrote:
>> On 10/15/2012 11:10 PM, seancompusult wrote:
>>> Does anyone have a solution for people like me who must use Java 5?
>>
>> I had no problems building current git head of the JDBC driver with
>> Java SE 5, nor the REL_9_2_STABLE branch.
>>
>
> Ah, quite right.  I was having a problem running ant, because it itself
> was compiled with Java 7.  :-(  IMO the whole approach of relying on
> compiling with specific Java versions is flawed, but at least I've
> gotten past this issue so I'm happy.  Thanks for that.

Yes, it's flawed, but it's also unfortunately necessary.

javac offers flags like -source 1.5 -target 1.5 for controlling bytecode 
generation and source compatibility. That's fine, but it offers 
absolutely no way to say "treat standard library packages, classes and 
methods added after Java SE 5 as missing".

This means that for testing at least it's required to build with a 
variety of JDK versions.

I agree that it'd be nice to support downlevel class generation for end 
users. It may even be possible; I haven't dug into build.xml in detail yet.

--
Craig Ringer





view thread (5+ messages)

Message-ID: <507D51F4.5020501@ringerc.id.au>
Permalink:  ../507D51F4.5020501@ringerc.id.au/
Also on:    postgresql.org/message-id/507D51F4.5020501@ringerc.id.au

 · 

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-bugs@postgresql.org
  Cc: ringerc@ringerc.id.au, sean@compusult.net
  Subject: Re: [Spam] Re: BUG #7577: JDBC Driver - Compiled with Java 7
  In-Reply-To: <507D51F4.5020501@ringerc.id.au>
  References: <E1TIuWE-0003nJ-46@wrigleys.postgresql.org> <1350313807264-5728220.post@n5.nabble.com> <507CC8A6.4070303@ringerc.id.au> <507D4EC9.3030708@compusult.net> <507D51F4.5020501@ringerc.id.au>

* 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