
Originally Posted by
joni.loky
Ok...so here's what's happening. I'm getting a list of fields in the object i'm making a copy of by calling:
Field[] fields = myClass.getDeclaredFields();
this is what the array looks like:
[private java.lang.Integer ar.mycompany.cda.modelo.beans.PersistenceObject.id , private static final org.aspectj.lang.JoinPoint$StaticPart ar.mycompany.cda.modelo.beans.PersistenceObject.aj c$tjp_0, private static final org.aspectj.lang.JoinPoint$StaticPart ar.mycompany.cda.modelo.beans.PersistenceObject.aj c$tjp_1]
The first one is OK...the other 2...not so much. As you can see the last 2 are declared "static final". Which is why the
"java.lang.IllegalAccessException: Field is final" is being thrown.
I guess what I need to do is to have in this particular point an "unweaved object". Is there a way to do that?
Thnx