private synchronized void setCreator ( ObjectValue newCreator ) { // Do not set the creator if created by the system class. The System contains // fields with references to Thread instances which are not Serializable and // will fail a deep copy with a NotSerializableExpection for Thread if ( newCreator != null && newCreator . type . getClassdef ( ) instanceof ASystemClassDefinition ) { return ; } // establish transitive reference newCreator . addChild ( this ) ; }
Sets the creator of this object value and adds this to the newCreator parsed as argument