Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aK36C-0003IA-Vt for pgsql-jdbc@arkaria.postgresql.org; Fri, 15 Jan 2016 12:03:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aK36C-00058Z-Hh for pgsql-jdbc@arkaria.postgresql.org; Fri, 15 Jan 2016 12:03:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aK36B-00057Y-Vo for pgsql-jdbc@postgresql.org; Fri, 15 Jan 2016 12:03:24 +0000 Received: from smtp.procolix.com ([95.215.185.30]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aK368-0000Vn-W2 for pgsql-jdbc@postgresql.org; Fri, 15 Jan 2016 12:03:23 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.procolix.com (Postfix) with ESMTP id 6D360440A7 for ; Fri, 15 Jan 2016 13:03:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smtp.procolix.com Received: from smtp.procolix.com ([127.0.0.1]) by localhost (host436.procolix.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 338h23h+epy5 for ; Fri, 15 Jan 2016 13:03:18 +0100 (CET) Received: from webmail.procolix.com (webmail.procolix.com [95.215.185.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mark@lawinegevaar.nl) by smtp.procolix.com (Postfix) with ESMTPSA id E162D4405F for ; Fri, 15 Jan 2016 13:02:38 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Fri, 15 Jan 2016 13:02:38 +0100 From: Mark Rotteveel To: List Subject: Re: Maven Artifact JDK Suffix In-Reply-To: References: <6b15260c69e1adcefcd1d90b70211c8f@imap.procolix.com> Message-ID: <4822999055c271ac624490a5e9f18625@imap.procolix.com> X-Sender: mark@lawinegevaar.nl User-Agent: RoundCube Webmail/0.2 X-Pg-Spam-Score: -1.9 (-) 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 On Fri, 15 Jan 2016 06:56:54 -0500, Dave Cramer wrote: > On 15 January 2016 at 06:51, Mark Rotteveel wrote: > >> On Fri, 15 Jan 2016 06:24:21 -0500, Dave Cramer >> 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