Warning in getConstructor() in Java 6
I'm having compilation wornings after I switched to Java 6 in the following code:
Class cls = ...
Constructor constr = cls.getConstructor(Long.class, Date.class);
warning: [unchecked] unchecked call to getConstructor(java.lang.Class<?>...) as a member of the raw type java.lang.Class
Whatever I tried, I cannot get rid of this warning. Anybody can help?
Thanks,
Pavel

