Wednesday, December 19, 2012

Re: Upgrading from 2.4 to 2.5: Issues with Generics?

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.

On Wednesday, December 19, 2012 3:36:20 AM UTC+1, objectuser wrote:
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?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QE6In1CfTP0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment