问题
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