We're working on a map-reduce framework project from scratch. When receiving the .jar file to get classes, the generic types that we defined (key, value) caused a cast type problem.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: java.lang.ClassCastException: keysvalues.Key1 cannot be cast to keysvalues.Key1