Berin Loritsch wrote:
>
> This is the rough equivalent of what BCEL generates:
>
> class BCELGeneratedProxy implements A
> {
> private final A m_proxy;
>
> public BCELGeneratedProxy(A proxy)
> {
> m_proxy = proxy;
> }
>
> public void do()
> {
> m_proxy.do();
> }
> }
>
Yes, that was my thought.
> Do keep in mind that there is a heavy penalty for creating
> classes with BCEL due to the class compilation time.
Sure.
> There
> is still a penalty involved with the wrapper class. I'm not
> sure if it is because hotspot is not recompiling or inlining
> it or if there is some other technical issue I am not aware
> of. I will say that BCEL programming is a royal pain. While
> I believe this is what is happening, there could be some
> gotchas that I am not aware of that sap the performance.
>
Thanks for clarifying, Berin!
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Apache Excalibur Project -- URL: http://excalibur.apache.org/