[Java] Fix serializing issues of RaySerializer (#4887)

* Fix

* Address comment.
This commit is contained in:
Qing Wang
2019-06-08 22:56:00 +08:00
committed by GitHub
parent ec8aaf011b
commit 671c0f769e
4 changed files with 28 additions and 3 deletions
@@ -20,7 +20,9 @@ public class RayPyActorImpl extends RayActorImpl implements RayPyActor {
*/
private String className;
private RayPyActorImpl() {}
// Note that this empty constructor must be public
// since it'll be needed when deserializing.
public RayPyActorImpl() {}
public RayPyActorImpl(UniqueId id, String moduleName, String className) {
super(id);