I have the following methods:
public T fromJson( Reader jsonData, Class clazz ) { return fromJson( jsonData, (Type)clazz ); } public <
I encountered the same problem and found it was a bug (#6302954) in the JDK. It was fixed in jdk 6u25.
I worked around one of the instances of this problem but decided to update the JDK version on the CI box instead.