Many of the HotSpot APIs that deal with array klasses use Klass* as the type (for both parameters and return value). This causes a lot of unnecessary type casts in the C++ code.
These APIs should be changed to use ArrayKlass, TypeArrayKlass and ObjArrayKlass as appropriate.
These APIs should be changed to use ArrayKlass, TypeArrayKlass and ObjArrayKlass as appropriate.