pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Rotteveel <mark@lawinegevaar.nl>
To: List <pgsql-jdbc@postgresql.org>
Subject: Re: Maven Artifact JDK Suffix
Date: Fri, 15 Jan 2016 13:02:38 +0100
Message-ID: <4822999055c271ac624490a5e9f18625@imap.procolix.com> (raw)
In-Reply-To: <CADK3HHKap19C9=20sQpTqowY-0=43O04Vsb2_7C8gJ8FfVc9FA@mail.gmail.com>
References: <CAH7T-aoBbaEm5UTF_4iipK7QKkidqObOgwoNnr-SGPKaivvzqg@mail.gmail.com>
	<a532668452918a90045ea9e0bc65721d@imap.procolix.com>
	<CAB=Je-HwcmdtEjCDiQY5uqkX_apNFikwgXsoHFuKTSFVrEWLFg@mail.gmail.com>
	<6b15260c69e1adcefcd1d90b70211c8f@imap.procolix.com>
	<CAB=Je-HngF4CtMK_-nPDKTYRKbDRwiOLfGkpcx81aNC1SruUxw@mail.gmail.com>
	<CAH7T-ap9d+UJiERNrJdP2Lbt1bJPWfnfJqTc9mu8s7kcqPpj3w@mail.gmail.com>
	<CAB=Je-GNyGptoOJsD99Ag6pvGTr5gZ66xSqPZGXXEPkSwHcchA@mail.gmail.com>
	<CAH7T-aoyGqjP+a-TdQRrgRUN8uo0O_z53LbukYujasW_V3YjAg@mail.gmail.com>
	<CADK3HH+wBDWJB8=fGD_OuQOaTN0RPugL53Ym8-4pA+Sbb3gUXw@mail.gmail.com>
	<b3d2112cf815290bfba8f94ef2ab0d4e@imap.procolix.com>
	<CADK3HHKap19C9=20sQpTqowY-0=43O04Vsb2_7C8gJ8FfVc9FA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

On Fri, 15 Jan 2016 06:56:54 -0500, Dave Cramer <pg@fastcrypt.com> wrote:
> On 15 January 2016 at 06:51, Mark Rotteveel <mark@lawinegevaar.nl>
wrote:
> 
>> On Fri, 15 Jan 2016 06:24:21 -0500, Dave Cramer <davecramer@gmail.com>
>> wrote:
>> > I would have to agree with this. I think people will be surprised
(not
>> in a
>> > good way) if we upgrade to java 9 and all of a sudden maven pulls
down
>> JDBC
>> > for java 9
>>
>> As far as I know, starting with Java 9 this problem could be solved
with
>> multi-release JARs (JEP-238, http://openjdk.java.net/jeps/238). The
main
>> content could then be Java 8, and the Java 9 versions of classes could
go
>> into META-INF/versions/9 (assuming that is the final way JEP-238 will
be
>> realised, I am not sure if it is already in). For efficiency it would
be
>> best to only put in a Java 9 version of classes that really need a Java
9
>> version.
>>
>> Yes, but in my example the customer would still be running Java 8. Does
> Java 8 know how to read this jar

Yes it would, because Java 8 doesn't know about META-INF/versions/... so
it will just read the (Java 8) classes in the root. The idea behind JEP-238
is that Java versions that don't understand it will use the classes in the
root as they would normally do, and that Java versions that do understand
it will first read a class in their version folder (if it exists), and fall
back to the classes in the root if no version-specific class is found.

At least, that is the theory as I understand it.

Mark


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (26+ messages)  latest in thread

Message-ID: <4822999055c271ac624490a5e9f18625@imap.procolix.com>
Permalink:  ../4822999055c271ac624490a5e9f18625@imap.procolix.com/
Also on:    postgresql.org/message-id/4822999055c271ac624490a5e9f18625@imap.procolix.com

 · 

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: mark@lawinegevaar.nl
  Subject: Re: Maven Artifact JDK Suffix
  In-Reply-To: <4822999055c271ac624490a5e9f18625@imap.procolix.com>
  References: <CAH7T-aoBbaEm5UTF_4iipK7QKkidqObOgwoNnr-SGPKaivvzqg@mail.gmail.com> <a532668452918a90045ea9e0bc65721d@imap.procolix.com> <CAB=Je-HwcmdtEjCDiQY5uqkX_apNFikwgXsoHFuKTSFVrEWLFg@mail.gmail.com> <6b15260c69e1adcefcd1d90b70211c8f@imap.procolix.com> <CAB=Je-HngF4CtMK_-nPDKTYRKbDRwiOLfGkpcx81aNC1SruUxw@mail.gmail.com> <CAH7T-ap9d+UJiERNrJdP2Lbt1bJPWfnfJqTc9mu8s7kcqPpj3w@mail.gmail.com> <CAB=Je-GNyGptoOJsD99Ag6pvGTr5gZ66xSqPZGXXEPkSwHcchA@mail.gmail.com> <CAH7T-aoyGqjP+a-TdQRrgRUN8uo0O_z53LbukYujasW_V3YjAg@mail.gmail.com> <CADK3HH+wBDWJB8=fGD_OuQOaTN0RPugL53Ym8-4pA+Sbb3gUXw@mail.gmail.com> <b3d2112cf815290bfba8f94ef2ab0d4e@imap.procolix.com> <CADK3HHKap19C9=20sQpTqowY-0=43O04Vsb2_7C8gJ8FfVc9FA@mail.gmail.com> <4822999055c271ac624490a5e9f18625@imap.procolix.com>

* 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