From 7678418210ec3ebe13df35e771b3b36cad698617 Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Tue, 17 Mar 2020 22:07:41 +0800 Subject: [PATCH] [Java] Fix the issue that the cached value in `RayObject` is serialized (#7613) --- .../src/main/java/org/ray/runtime/object/RayObjectImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/runtime/src/main/java/org/ray/runtime/object/RayObjectImpl.java b/java/runtime/src/main/java/org/ray/runtime/object/RayObjectImpl.java index dce123727..c34407691 100644 --- a/java/runtime/src/main/java/org/ray/runtime/object/RayObjectImpl.java +++ b/java/runtime/src/main/java/org/ray/runtime/object/RayObjectImpl.java @@ -18,12 +18,12 @@ public final class RayObjectImpl implements RayObject, Serializable { * Note, this is necessary for direct calls, in which case, it's not allowed to call `Ray.get` on * the same object twice. */ - private T object; + private transient T object; /** * Whether the object is already gotten from the object store. */ - private boolean objectGotten; + private transient boolean objectGotten; public RayObjectImpl(ObjectId id) { this.id = id;