Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z57N2-0001xN-Bp for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 07:02:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z57N0-0005eQ-Al for pgsql-jdbc@arkaria.postgresql.org; Wed, 17 Jun 2015 07:02:46 +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 1Z57Mz-0005eK-PQ for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 07:02:45 +0000 Received: from smtp.procolix.com ([95.215.185.30]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z57Mu-0002nA-69 for pgsql-jdbc@postgresql.org; Wed, 17 Jun 2015 07:02:43 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.procolix.com (Postfix) with ESMTP id 48C2B43CA5 for ; Wed, 17 Jun 2015 09:02:39 +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 nyvW+DiQbEmx for ; Wed, 17 Jun 2015 09:02:37 +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 9B76E43A8F for ; Wed, 17 Jun 2015 09:02:37 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Wed, 17 Jun 2015 09:02:37 +0200 From: Mark Rotteveel To: List Subject: Re: Pre-processing during build In-Reply-To: <004b01d0a86a$4e9e6eb0$ebdb4c10$@eu> References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <004b01d0a86a$4e9e6eb0$ebdb4c10$@eu> Message-ID: 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 Tue, 16 Jun 2015 21:26:12 +0200, "Markus KARG" wrote: > So it boils down to verification and I doubt that the bytecode verifier > will try to actually load java.sql.Type class. Have you really tried this > out or do you have another link where it is written that the byte code > verifier will CHECK the existence of a parameter class when it verifies the > loaded class? It looks like the JLS and JVM specification allow for resolution of symbolic references at classloading or "first use" and a JVM implementation is free to choose: see http://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.1.2 and http://docs.oracle.com/javase/specs/jls/se8/html/jls-12.html#jls-12.3 Although I am not entirely sure about this, I interpret this that loading a class that has a method whose signature includes a type that is not available (like SQLType on Java 7 or lower) could work on one JVM implementation (late resolution), but not on others (early resolution). Mark -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc