question: public static ClassLoader callerClassLoader ( ) { if ( org . jikesrvm . VM . runningVM ) { ClassLoader ans = RVMClass . getClassLoaderFromStackFrame ( 2 ) ; if ( ans == BootstrapClassLoader . getBootstrapClassLoader ( ) ) { return null ; } else { return ans ; } } else { return null ; } }
target:  This method must be included, as it is used by ResourceBundle.getBundle(), and other places as well. The reference implementation of this method uses the getStackClassLoader() method. Returns the ClassLoader of the method that called the caller. i.e. A.x() calls B.y() calls callerClassLoader(), A's ClassLoader will be returned. Returns null for the bootstrap ClassLoader.