0
我有实现java.io.Serializable
接口(用于串行化目的)几个模型类,它们在DEVMODE和webmode完美地工作,但是当我想在运行测试后使用这些数据在GWTTestCase我得到这个错误:为什么GWTTestCase只接受序列化Java对象的IsSerializable接口?
Type 'com.saeed.test.model.MyModel' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable'
and did not have a custom field serializer.
For security purposes, this type will not be deserialized.
我提到MyModel类没有默认构造函数(但在devmode和webmode中完美工作)。
我该如何解决这个问题?
http://sscce.org/ –
无论您是否能够解决问题,请发布更新。如果通过选择答案或发布自己的答案来解决问题,这是一个很好的做法。 – SSR