e88e56818b
Motivation: It is not safe to cache a jclass without obtaining a global reference via NewGlobalRef. Modifications: Correctly use NewGlobalRef(...) before caching Result: Correctly cache jclass instance