Hi is there any way in Java to get staticly generic class type
I have ended up with construct
List l = new ArrayList&
Basically, just cast around to fool the compiler. At runtime it's a simple Class anyway.
a utility method:
public static >
Class cast(Class classC, Class classE)
{
return (Class)classC;
}
Class> c =
cast(List.class, TaskLocalConstraints.class);
If you need a real Type complete with runtime generic type info, that's a different story.