[BUG] Duplicated elements in private final List member when converting JSONObject to Java object via JSONObject.toJavaObject
#2944
Labels
bug
Something isn't working
问题描述
Duplicated elements in private final List member when converting JSONObject to Java object via
JSONObject.toJavaObject
.使用
JSONObject.toJavaObject
方法将 JSONObject 对象转换为 Java 对象时,private final List 成员中出现重复元素。环境信息
重现步骤
如何操作可以重现该问题:
期待的正确结果
Parsed object should have the same contents as the original object.
相关日志输出
附加信息
The results are as expected if I remove the
final
modifier and add a setter foremployees
inDepartment
class.The text was updated successfully, but these errors were encountered: