Due to how Java does generics by erasure, this is not possible. Instead, try 
the way that GWT.create() works, where a instance of the expected class is 
passed in.

For example, your method signature could be
public static final <T> void callJSONRPCService(Class<T> clazz, 
AsyncCallback<T> callback);

Note that if T is List<String>, clazz will only equal List, so it won't be 
able to tell the difference between different types of Lists.

HTH,
Colin

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to