Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4cPy-0006Oo-CN for pgsql-jdbc@arkaria.postgresql.org; Mon, 15 Jun 2015 21:59:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z4cPx-0007mS-TD for pgsql-jdbc@arkaria.postgresql.org; Mon, 15 Jun 2015 21:59:45 +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 1Z4cPx-0007mM-48 for pgsql-jdbc@postgresql.org; Mon, 15 Jun 2015 21:59:45 +0000 Received: from smtprelay01.ispgateway.de ([80.67.18.43]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z4cPt-00056U-Q5 for pgsql-jdbc@postgresql.org; Mon, 15 Jun 2015 21:59:43 +0000 Received: from [88.66.13.254] (helo=Zauselmaus) by smtprelay01.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Z4cPq-0003H8-Ts for pgsql-jdbc@postgresql.org; Mon, 15 Jun 2015 23:59:39 +0200 From: "Markus KARG" To: Subject: Re: Pre-processing during build Date: Mon, 15 Jun 2015 23:59:45 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <000c01d0a7b6$97571ee0$c6055ca0$@eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000D_01D0A7C7.5ADFEEE0" X-Mailer: Microsoft Office Outlook 12.0 Content-Language: de Thread-Index: AdCntpbyf0pDKCkqRP+3osfxlXeb+w== X-AVK-Virus-Check: AVA 25.1869;71FD75 X-AVK-Spam-Check: 1; str=0001.0A0C0205.557F4ACA.028B,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: -0.7 (/) 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_000D_01D0A7C7.5ADFEEE0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_000D_01D0A7C7.5ADFEEE0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

------=_NextPart_000_000D_01D0A7C7.5ADFEEE0--