Hi,
I have an object called Proxy which has one constructor public Proxy(Object
obj). Inside the method I'm trying to inject into, I want to instantiate
the proxy object passing in "this" for the param variable. In java, it
would look like
new Proxy(this);
I know how to instantiate objects using BCel, but I don't know how to get a
reference to "this" to put on the stack before I call
patch.append(factory.createInvoke("Proxy", "<init>", Type.VOID,
new Type[] {Type.OBJECT},
Constants.INVOKESPECIAL));
Can anybody help me?
Thanks,
--Abel
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>