mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8179424: Remove terminally deprecated sun.reflect.Reflection.getCallerClass
Reviewed-by: alanb, dfuchs, dholmes, lancea, mchung, rriggs
This commit is contained in:
parent
df559fe00e
commit
a2000f8720
13 changed files with 22 additions and 247 deletions
|
@ -64,14 +64,6 @@ public class Reflection {
|
|||
@HotSpotIntrinsicCandidate
|
||||
public static native Class<?> getCallerClass();
|
||||
|
||||
/**
|
||||
* @deprecated This method will be removed.
|
||||
* This method is a private JDK API and retained temporarily to
|
||||
* simplify the implementation of sun.misc.Reflection.getCallerClass.
|
||||
*/
|
||||
@Deprecated(forRemoval=true)
|
||||
public static native Class<?> getCallerClass(int depth);
|
||||
|
||||
/** Retrieves the access flags written to the class file. For
|
||||
inner classes these flags may differ from those returned by
|
||||
Class.getModifiers(), which searches the InnerClasses
|
||||
|
|
|
@ -30,13 +30,7 @@
|
|||
JNIEXPORT jclass JNICALL
|
||||
Java_jdk_internal_reflect_Reflection_getCallerClass__(JNIEnv *env, jclass unused)
|
||||
{
|
||||
return JVM_GetCallerClass(env, JVM_CALLER_DEPTH);
|
||||
}
|
||||
|
||||
JNIEXPORT jclass JNICALL
|
||||
Java_jdk_internal_reflect_Reflection_getCallerClass__I(JNIEnv *env, jclass unused, jint depth)
|
||||
{
|
||||
return JVM_GetCallerClass(env, depth);
|
||||
return JVM_GetCallerClass(env);
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue