Find path to offending non-Serializable member variable

前端 未结 3 2029
隐瞒了意图╮
隐瞒了意图╮ 2020-12-31 17:42

In Java, Serialization makes reading and writing objects to streams REALLY easy. For instance, the following code snippet is mostly all it takes to write objects to a strea

3条回答
  •  自闭症患者
    2020-12-31 18:19

    Pass the flag -Dsun.io.serialization.extendedDebugInfo=true to the JVM and it should give you exactly the information you want, when a NotSerializableException is thrown.

提交回复
热议问题