Wednesday, January 4, 2012

Problem with generic type

Hi .
I tried to get parameter class of generic class:
Type type = ((ParameterizedType)
(getClass().getGenericSuperclass())).getActualTypeArguments()[0];

And it throw exception:

[ERROR] [test] - Line 23: No source code is available for type
java.lang.reflect.Type; did you forget to inherit a required module?

How can I use reflection in GWT?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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