From: | Mark Rotteveel <mark(at)lawinegevaar(dot)nl> |
---|---|
To: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Pre-processing during build |
Date: | 2015-06-18 07:05:05 |
Message-ID: | fa73b4c3f14a86383f4901182407cd4f@imap.procolix.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Thu, 18 Jun 2015 08:58:14 +0200, Andrej Golovnin
<andrej(dot)golovnin(at)gmail(dot)com> 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
From | Date | Subject | |
---|---|---|---|
Next Message | Giuseppe Sacco | 2015-06-18 08:27:48 | Re: Help Reviewing PR's |
Previous Message | Andrej Golovnin | 2015-06-18 06:58:14 | Re: Pre-processing during build |