Open GoogleCodeExporter opened 9 years ago
Class<T> won't work in general, since there's no value for an arbitrary T.
Consider T == List<String>. But there
is a convenient workaround — inject a TypeLiteral<T>. That works for all
cases and it's more powerful than
injecting Class<T>. And conveniently, you can get the raw type of that when you
need it.
Original comment by limpbizkit
on 26 Jan 2009 at 1:15
Original issue reported on code.google.com by
NikolayM...@gmail.com
on 25 Jan 2009 at 3:17