Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5TtG-0007Rq-Se for pgsql-jdbc@arkaria.postgresql.org; Thu, 18 Jun 2015 07:05:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5TtG-0007Rw-Ch for pgsql-jdbc@arkaria.postgresql.org; Thu, 18 Jun 2015 07:05:34 +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 1Z5TtF-0007Rp-Bg for pgsql-jdbc@postgresql.org; Thu, 18 Jun 2015 07:05:33 +0000 Received: from smtp.procolix.com ([95.215.185.30]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z5Tt8-0003eu-Hw for pgsql-jdbc@postgresql.org; Thu, 18 Jun 2015 07:05:31 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.procolix.com (Postfix) with ESMTP id EEEBE43E78 for ; Thu, 18 Jun 2015 09:05:24 +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 SIfbB4BIWklR for ; Thu, 18 Jun 2015 09:05:05 +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 4572C43BFE for ; Thu, 18 Jun 2015 09:05:05 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Thu, 18 Jun 2015 09:05:05 +0200 From: Mark Rotteveel To: List Subject: Re: Pre-processing during build In-Reply-To: References: <000c01d0a7b6$97571ee0$c6055ca0$@eu> <005101d0a86a$f18ffe90$d4affbb0$@eu> <60b20bb834cf54db8232239b9c27fcc2@imap.procolix.com> <2e15428aa0cf241e6cd9b951ba96140b@imap.procolix.com> <5d539d76f4ccb9a59abc57d5d99c4d92@imap.procolix.com> <006901d0a940$f525a330$df70e990$@eu> <148bbc16aa048b951b1080d56d7093fd@imap.procolix.com> 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 Thu, 18 Jun 2015 08:58:14 +0200, Andrej Golovnin wrote: > Hi Mark, > >>> >>> An official Java SE standard since v1.3, BTW, to prevent further >>> discussions about versions. ;-) >> >> Proxies use reflection (which is why they are part of the >> java.lang.reflect package. >> > > Just because the class is in the package java.lang.reflect, it does > not mean it uses the reflection. Proxies are on the fly generated > classes and use generic byte code to invoke methods. No reflection is > involved. Just take a look at the class sun.misc.ProxyClassFactory. Instead I looked at java.lang.reflect.Proxy.ProxyClassFactory and it certainly does use reflection (although on interfaces), and even if the proxy generation itself wouldn't use reflection, most InvocationHandler implementations I have seen do use reflection one way or the other. Mark -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc