Improvement - reset jodd ClassIntrospector instance after RLiveObjectService.persist() method invocation. #2937

pull/2954/head
Nikita Koksharov 5 years ago
parent aa056ae671
commit a81041f25d

@ -17,6 +17,7 @@ package org.redisson;
import jodd.bean.BeanCopy;
import jodd.bean.BeanUtil;
import jodd.introspector.ClassIntrospector;
import net.bytebuddy.ByteBuddy;
import net.bytebuddy.description.field.FieldDescription;
import net.bytebuddy.description.field.FieldDescription.InDefinedShape;
@ -236,6 +237,8 @@ public class RedissonLiveObjectService implements RLiveObjectService {
copy(detachedObject, attachedObject, Arrays.asList(idFieldName));
}
ClassIntrospector.get().reset();
commandExecutor.execute();
return new ArrayList<>(detached2Attached.keySet());
}

Loading…
Cancel
Save