RF JsonRpcProxy “is neither a getter nor a setter”

心不动则不痛 提交于 2019-12-13 04:29:51

问题


I'm getting is neither a getter nor a setter when gwt is compiling my @JsonRpcProxy annotated ValueProxy interfaces.

I have those methods implemented with an Autobean Category but seems that RquestFactoryGenerator can't handle them:

[ERROR] [modules] The method public abstract client.beans.ExpenseFreeBase findExpenseFreeBaseAssignedForThisDate(java.util.Date date) is neither a getter nor a setter

Some help?


回答1:


Yes, that simply is not supported: http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/user/src/com/google/web/bindery/requestfactory/gwt/rebind/model/RequestFactoryModel.java#329

Feel free to open a request-enhancement (as I couldn't find an existing one) at http://code.google.com/p/google-web-toolkit/issues/list and see how the GWT team feels about it.



来源:https://stackoverflow.com/questions/10636966/rf-jsonrpcproxy-is-neither-a-getter-nor-a-setter

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