0

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 Answers1

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.

Thomas Broyer
  • 64,353
  • 7
  • 91
  • 164
  • Thanks again Thomas. I hope JsonRpc support improves from experimental. – Eduardo Guardiola May 17 '12 at 15:17
  • http://code.google.com/p/google-web-toolkit/issues/detail?id=7378&thanks=7378&ts=1337268575 – Eduardo Guardiola May 17 '12 at 15:29
  • Thomas, reading the code it seems that the no-getter-setter methods aren't supported in any RF-Proxy actually. Is not related to be an JsonRpcProxy. I'm right? – Eduardo Guardiola May 17 '12 at 15:36
  • It seems that is ignoring methods for EntityProxy. Why not for ValueProxy? 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#321 – Eduardo Guardiola May 17 '12 at 15:41
  • I believe the code simply hadn't been updated when ValueProxies were introduced, but it works the same for all proxies; and you're right it also works the same here whether using JSON-RPC or not. – Thomas Broyer May 17 '12 at 17:10