Upgrading from 2.4 to 2.5: Issues with Generics?

60 views
Skip to first unread message

objectuser

unread,
Dec 18, 2012, 9:36:20 PM12/18/12
to google-we...@googlegroups.com
I'm working through the upgrade to 2.5 and I'm having trouble with my use of generics when used with an RPC service.  My app works fine in 2.4, but if I change it to use 2.5, my service calls never make it to the server.

I've been able to reproduce the problem by using a generic method.

If I have something like this, it's fine:

  public Result execute(Command command) { ... }

However, if it's like this, the method is never invoked on the server:

  public <T extends SomeType> Result execute(Command<T> command) { ... }

Has anyone else encountered something similar?

Andrea Boscolo

unread,
Dec 19, 2012, 3:09:27 AM12/19/12
to google-we...@googlegroups.com
According to https://groups.google.com/d/topic/gwt-steering/9K_HtTdVVpE/discussion there are some regressions.
I guess your problem is related. The known regression with generics has a review pending, so you may be able to test is against trunk in a few days, or wait for the 2.5.1 release.

objectuser

unread,
Dec 19, 2012, 8:47:24 AM12/19/12
to google-we...@googlegroups.com
Thanks, Andrea.

I think you're right.  This issue does seem to report the problem I'm having.  I thought it was with the method signature, but my objects do have type parameters as described.


I think I'll revert to 2.4 for now and plan to upgrade to 2.5.1.
Reply all
Reply to author
Forward
0 new messages