< prev index next >

src/jdk.unsupported/share/classes/sun/reflect/Reflection.java

Print this page

        

*** 33,42 **** --- 33,43 ---- * @deprecated This method is an internal API and will be removed. * Use {@link StackWalker} to walk the stack and obtain the caller class * with {@link StackWalker.StackFrame#getDeclaringClass} instead. */ @Deprecated(forRemoval=true) + @SuppressWarnings("removal") // Reflection.getCallerClass public static Class<?> getCallerClass(int depth) { if (depth < 0) throw new InternalError("depth must be positive"); // increase depth to account for delegation to the internal impl
< prev index next >