dc4de7fbb4
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