How to serialize a list in AutoBean (GWT)?

拜拜、爱过 提交于 2019-12-05 05:44:11
Thomas Broyer

This is unfortunately a known issue: https://github.com/gwtproject/gwt/issues/6903

The problem is that the items of the list are not wrapped into AutoBeans so AutoBeanUtils#getAutoBean in AutoBeanCodexImpl.ObjectCoder#encode returns null, hence the NPE in AutoBeanCodexImpl#doEncode.

The workaround involves replacing the list items with AutoBeans that wrap the actual value.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!