jdk/src/share/native/sun/reflect/Reflection.c
changeset 16906 44dfee24cb71
parent 5506 202f599c92aa
child 21284 e6dfe841a88f
--- a/jdk/src/share/native/sun/reflect/Reflection.c	Wed Apr 17 10:15:33 2013 +0800
+++ b/jdk/src/share/native/sun/reflect/Reflection.c	Tue Apr 16 21:39:52 2013 -0700
@@ -27,9 +27,9 @@
 #include "sun_reflect_Reflection.h"
 
 JNIEXPORT jclass JNICALL Java_sun_reflect_Reflection_getCallerClass
-(JNIEnv *env, jclass unused, jint depth)
+(JNIEnv *env, jclass unused)
 {
-    return JVM_GetCallerClass(env, depth);
+    return JVM_GetCallerClass(env, JVM_DEPTH); // JVM_DEPTH is only the expected value
 }
 
 JNIEXPORT jint JNICALL Java_sun_reflect_Reflection_getClassAccessFlags