Open
Description
Hello,
I'm using as3-commons Bytecode 1.0.
In our application, a user can "override" values of some shared business
objects picked from a company library
As the application contains come legacy, the best way to achieve this point
seems to create wrapper objects.
If a value is null in the wrapper, the value of the underlying shared object is
returned.
My interceptor function looks like this :
http://pastie.org/3248809
I create a proxy object this way :
var elementCPI:IClassProxyInfo = proxyFactory.defineProxy(Element);
elementCPI.introduce(tmpclass);
elementCPI.interceptorFactory = new TmpFactory;
The tmpclass is only providing a test findSourceObject() method, and the
TmpFactory creates a BasicMethodInvocationInterceptor with the interceptor.
When debugging, when the object is created (incoming from server, there is also
some lines to register the new proxy-wrapper class to a corresponding class
server-side), a getter is called inside a setter (don't really know why, maybe
a flex-internal thing as my object is bindable), and during the getter
interception the targetMethod is null, so I can't check the real proxy-value.
The commented line is a test, resulting in an infinite recursive call.
Thanks !
Original issue reported on code.google.com by [email protected]
on 25 Jan 2012 at 9:52