Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4tkj-0004Bf-PX for pgsql-jdbc@arkaria.postgresql.org; Tue, 16 Jun 2015 16:30:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z4tkj-0005Ab-97 for pgsql-jdbc@arkaria.postgresql.org; Tue, 16 Jun 2015 16:30:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z4tki-0005AQ-38 for pgsql-jdbc@postgresql.org; Tue, 16 Jun 2015 16:30:20 +0000 Received: from smtprelay02.ispgateway.de ([80.67.29.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z4tke-0000dw-An for pgsql-jdbc@postgresql.org; Tue, 16 Jun 2015 16:30:18 +0000 Received: from [88.66.7.101] (helo=Zauselmaus) by smtprelay02.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Z4tka-00049F-Ny for pgsql-jdbc@postgresql.org; Tue, 16 Jun 2015 18:30:12 +0200 From: "Markus KARG" To: "'List'" References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> In-Reply-To: Subject: Re: Pre-processing during build Date: Tue, 16 Jun 2015 18:30:19 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <001f01d0a851$bc60c420$35224c60$@eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01D0A862.7FE99420" X-Mailer: Microsoft Office Outlook 12.0 Content-Language: de Thread-Index: AdCnuRUw3qnlBgigQO69DnhPUoxgEAAmFd4w X-AVK-Virus-Check: AVA 25.1869;71FD75 X-AVK-Spam-Check: 1; str=0001.0A0C0202.55804F14.021C,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0; F1206 X-Df-Sender: bWFya3VzQGhlYWRjcmFzaGluZy5ldQ== X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multi-part message in MIME format. ------=_NextPart_000_0020_01D0A862.7FE99420 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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. =20 =20 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 =20 How can you use the same name and different bytecode versions ? Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca =20 On 15 June 2015 at 17:59, Markus KARG wrote: Stephen, =20 thank you for starting this thread. =20 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. =20 The question is: How? Possibly by simply using "JRE8-JDBC42.jar" ALWAYS? =20 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. =20 Or did I miss something in this theoretical approach? =20 Regards -Markus =20 ------=_NextPart_000_0020_01D0A862.7FE99420 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

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,

 <= /o:p>

thank you = for starting this thread.

 <= /o:p>

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.

 <= /o:p>

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

 <= /o:p>

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.

 <= /o:p>

Or did I = miss something in this theoretical approach?

 <= /o:p>

Regards=

-Markus

 

------=_NextPart_000_0020_01D0A862.7FE99420--