rocketraman
12/10/2020, 4:14 PM<http://java.io|java.io>.Serializable
class. However accessing foo
from @delegate:Transient val foo: Foo by lazy { }
causes a NPE on deserialization. How can I create a lazy property that the VM does not try to serialize, but at the same time does the right thing?Ryan
12/10/2020, 4:18 PMrocketraman
12/10/2020, 4:19 PMSerializable
as its inherited from Apache Beam (and it uses it). Not using lazy
is an option, but first I wanted to see if there was a way to make it work.gildor
12/10/2020, 4:22 PMrocketraman
12/10/2020, 4:22 PMgildor
12/10/2020, 4:23 PMrocketraman
12/10/2020, 4:23 PMThis annotation is not applicable to target 'member property with delegate' and use site target '@get'
Ryan
12/10/2020, 4:23 PMRyan
12/10/2020, 4:23 PMrocketraman
12/10/2020, 4:44 PMreadObject
. There must be a more elegant approach though.