diff src/share/vm/prims/jvm.h @ 12824:615d83933195

8026025: JVM_GetCallerClass allows Reflection.getCallerClass(int depth) to use Reviewed-by: alanb, dholmes, twisti Contributed-by: mandy.chung@oracle.com
author dholmes
date Tue, 08 Oct 2013 02:56:06 -0400
parents ba9dacff9c9d
children 096c224171c4 2b8e28fdf503 21444610cb92
line wrap: on
line diff
--- a/src/share/vm/prims/jvm.h	Mon Oct 07 12:20:28 2013 -0400
+++ b/src/share/vm/prims/jvm.h	Tue Oct 08 02:56:06 2013 -0400
@@ -374,6 +374,9 @@
 /*
  * java.lang.Class and java.lang.ClassLoader
  */
+
+#define JVM_CALLER_DEPTH -1
+
 /*
  * Returns the class in which the code invoking the native method
  * belongs.