Problem with generic type

32 views
Skip to first unread message

Pa Huynh

unread,
Jan 5, 2012, 2:24:38 AM1/5/12
to Google Web Toolkit
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?

-sowdri-

unread,
Jan 6, 2012, 1:08:40 AM1/6/12
to google-we...@googlegroups.com
You cannot use Reflection in GWT!
Reply all
Reply to author
Forward
0 new messages