Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z57Rb-00028Z-JA for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 07:07:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z57Rb-0006J8-3P for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 07:07:31 +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 1Z57Ra-0006J1-4T for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 07:07:30 +0000 Received: from smtp.procolix.com ([95.215.185.30]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z57RX-00018b-Cb for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 07:07:28 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.procolix.com (Postfix) with ESMTP id B4FC243C8D for ; Wed, 17 Jun 2015 09:07:25 +0200 (CEST) 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 Qxd1iJOAxe74 for ; Wed, 17 Jun 2015 09:07:24 +0200 (CEST) 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 CFB4E43A8F for ; Wed, 17 Jun 2015 09:07:24 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Wed, 17 Jun 2015 09:07:24 +0200 From: Mark Rotteveel To: List Subject: Re: Pre-processing during build In-Reply-To: References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <005101d0a86a$f18ffe90$d4affbb0$@eu> Message-ID: <60b20bb834cf54db8232239b9c27fcc2@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 Wed, 17 Jun 2015 00:02:40 +0300, Vladimir Sitnikov wrote: > 2015-06-16 22:30 GMT+03:00 Markus KARG : >> The answer is pretty simple: Try it out. :-) >> >> Just compile a JRE 8 class down to byte code level 6 and load it on Java >> level 7. That's what I proposed. Nothing else. It really bet will work >> unless you try to INSTANTIATE JRE-only classes, but it should LOAD. And >> nothing more we need. > > Markus, can you please be more explicit in your suggestion? > > I did try a simple "Hello, world" and it does not run in stock JDKs of > MacOS: https://gist.github.com/vlsi/aeeb4a61d9c2b67ad213 > Even if you manage to make that fly, that would be built on sand. Good example: it demonstrates at least that using reflection (eg getDeclaredMethods; or in this case privateGetDeclaredMethods) will lead to a NoClassDefFoundError. Mark -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc