I have the following methods:
public T fromJson( Reader jsonData, Class clazz ) { return fromJson( jsonData, (Type)clazz ); } public <
I too Had a similar issue while compiling in NetBeans. All I had to do was change the JDK version from 16 bit to 32 bit in the Settings > Compile > Java Platform.