Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5IEC-0005AC-5N for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 18:38:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5IEB-0007M6-J1 for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 18:38:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z5IEA-0007Lz-Ni for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 18:38:22 +0000 Received: from smtprelay06.ispgateway.de ([80.67.31.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z5IE8-0007ln-1h for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 18:38:22 +0000 Received: from [88.66.14.101] (helo=Zauselmaus) by smtprelay06.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Z5IE5-0004qb-E0 for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 20:38:17 +0200 From: "Markus KARG" To: "'List'" References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <003a01d0a869$3312b1c0$99381540$@eu> In-Reply-To: Subject: Re: Pre-processing during build Date: Wed, 17 Jun 2015 20:38:26 +0200 Organization: Markus KARG, Staatl. gepr. Inf. Message-ID: <002301d0a92c$ccc91610$665b4230$@eu> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdCoyoRJuQapJDOXQ/utMCQzEUFtAQAYd0yA Content-Language: de X-AVK-Virus-Check: AVA 25.1869;71FD75 X-AVK-Spam-Check: 1; str=0001.0A0C0205.5581BE9A.00FC,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 >When I tried it in the past (for Jaybird) I ran into problems, it might have been an IncompatibleClassChangeError (or subclass) on classloading time, but I can't remember the exact details. I tried reading the JLS and JVM spec on this point, but I find it hard to come to a conclusion, so I will try a small experiment this weekend. Let's base further discussions on your weekend's test results aka hard fact= s. :-) >However that is half of your problem. The other half is that you risk using classes, methods or maybe even features that are not available in a lower Java version and that will not be detected compile time, but only at runtime (and not just in newly added JDBC 4.2 methods). This can most simply be detected by a "jre6 compliance" test drive with exp= licit JRE6 runtime lib in bootclasspath. -Markus --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc