pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus KARG <markus@headcrashing.eu>
To: 'List' <pgsql-jdbc@postgresql.org>
Subject: Re: Pre-processing during build
Date: Tue, 16 Jun 2015 18:30:19 +0200
Message-ID: <001f01d0a851$bc60c420$35224c60$@eu> (raw)
In-Reply-To: <CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com>
References: <000c01d0a7b6$97571ee0$c6055ca0$@eu>
	<CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

I never said I want to use different byte code versions. I actually want to use latest JRE API version but compiled down to JRE 6 byte code. Should be possible since technically unrelated as long as we do not use lambda expressions within your implementation source code.

 

 

From: davecramer@gmail.com [mailto:davecramer@gmail.com] On Behalf Of Dave Cramer
Sent: Dienstag, 16. Juni 2015 00:17
To: Markus KARG
Cc: List
Subject: Re: [JDBC] Pre-processing during build

 

How can you use the same name and different bytecode versions ?




Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

 

On 15 June 2015 at 17:59, Markus KARG <markus@headcrashing.eu> wrote:

Stephen,

 

thank you for starting this thread.

 

If it would be up to me, I would try to get rid of pre-processing if any possible, since it is a real p.i.t.a., as long as we can find a different solution to provide the same number of supported JDKs and JDBC versions.

 

The question is: How? Possibly by simply using "JRE8-JDBC42.jar" ALWAYS?

 

Has anybody tried whether it is possible to simply load a JRE8-JDBC42.jar on JRE6? I mean, not to actually invoke the new JDBC42 APIs, just to load the JAR and invoke the JDBC3 APIs only for example. The APIs themselved are backwards compatible, and as long as we don't invoke the new APIs, no ClassNotFound should happen (AFAIK the JRE loads classes only at first actual instantiation, but not simply because it is contained in a loaded .class file as a parameter). I mean, as long as we do not use JRE8-only APIs inside the Driver, and as long as we don't write the .class files in JRE8 byte code, certainly.

 

Or did I miss something in this theoretical approach?

 

Regards

-Markus

 

view thread (92+ messages)  latest in thread

Message-ID: <001f01d0a851$bc60c420$35224c60$@eu>
Permalink:  ../001f01d0a851$bc60c420$35224c60$@eu/
Also on:    postgresql.org/message-id/001f01d0a851$bc60c420$35224c60$@eu

 · 

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-jdbc@postgresql.org
  Cc: markus@headcrashing.eu
  Subject: Re: Pre-processing during build
  In-Reply-To: <001f01d0a851$bc60c420$35224c60$@eu>
  References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <CADK3HHK9TUug9amtabv1a+27u_bb31FCsLBarWsPv_PD12JCcw@mail.gmail.com> <001f01d0a851$bc60c420$35224c60$@eu>

* 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