@transient lazy val field serialization

前端 未结 1 1189
不知归路
不知归路 2021-02-05 22:35

I have a problem on Scala. I serialize an instance of class with @transient lazy val field. And then I deserialize it, the field is assigned null. I ex

相关标签:
1条回答
  • 2021-02-05 23:19

    There's a couple of tickets on this in Scala's Trac:

    • 1573
    • 1574

    I'd advise you to test against a trunk build of 2.9, as it may already be fixed.

    0 讨论(0)
提交回复
热议问题