Re: [qi4j-dev] ProxyReferenceInvocationHandler appears in Value JSonization

2009-09-08 Thread phil vd
Hi all, just a short reminder that this issue has not been solved. I still apply two patches, one for SerializableType (adding the type info) and one for EntityPropertyInstance to prevent the null proxy. regards, phil Niclas Hedhman wrote: > > You are probably right and we are not talking abo

Re: [qi4j-dev] ProxyReferenceInvocationHandler appears in Value JSonization

2009-08-31 Thread Niclas Hedhman
You are probably right and we are not talking about the same thing. I'll try to peek at it when I am a computer tomorrow... -- Niclas On Aug 31, 2009 6:26 PM, "philippe van dyck" wrote: Thanks you for this 'inner workings' overview, very instructive, but I am not sure we are talking about the

Re: [qi4j-dev] ProxyReferenceInvocationHandler appears in Value JSonization

2009-08-31 Thread philippe van dyck
Thanks you for this 'inner workings' overview, very instructive, but I am not sure we are talking about the same thing. It is about calling some VC Properties set methods *from inside* a composite (very probable case) and getting the VC proxy nullified when it leaves the confines of the co

Re: [qi4j-dev] ProxyReferenceInvocationHandler appears in Value JSonization

2009-08-28 Thread Niclas Hedhman
I am not at the computer atm, but if you are talking about getting rid of dereference(), then I think you are out of luck, although it may look like working in simple tests. Why? Qi4j Runtime constructs an invocation stack for each method in a composite. There is a Proxy at the top which represen

Re: [qi4j-dev] ProxyReferenceInvocationHandler appears in Value JSonization

2009-08-28 Thread philippe van dyck
Correction... public void set(T aNewValue) { if (isImmutable()) { throw new IllegalStateException("Property [" + qualifiedName() + "] is immutable"); } if (constraints != null) {

Re: [qi4j-dev] ProxyReferenceInvocationHandler appears in Value JSonization

2009-08-28 Thread philippe van dyck
Rickard, IMHO, this kind od rare occasions will have a deep impact on the Qi4j learning curve. I really favor a change in EntityPropertyInstance : public void set(T aNewValue) { if (isImmutable()) { throw new IllegalStateException("Property [" +

Re: [qi4j-dev] ProxyReferenceInvocationHandler appears in Value JSonization

2009-08-27 Thread Rickard Öberg
philippe van dyck wrote: And I cannot JSonize a proxy a null ValueComposite... Is this an isolated problem ? What did I miss ? This is one of the rare occasions where you need to use a workaround to convert the modifier proxy to a real proxy. We have not been able to figure out a way to do

[qi4j-dev] ProxyReferenceInvocationHandler appears in Value JSonization

2009-08-27 Thread philippe van dyck
Hi all, I tested (just for the fun) VC+type info JSonization in SerializableType like this : public void toJSON( Object value, JSONWriter json ) throws JSONException { ... else if( value instanceof ValueComposite ) { // Serialize ValueComposite JSON