summaryrefslogtreecommitdiff
path: root/external/ikvm/openjdk/sun/reflect/Reflection.java
diff options
context:
space:
mode:
authorJo Shields <directhex@apebox.org>2014-02-19 22:12:43 +0000
committerJo Shields <directhex@apebox.org>2014-02-19 22:12:43 +0000
commit9972bf87b4f27d9c8f358ef8414ac1ab957a2f0f (patch)
tree5bb230c1d698659115f918e243c1d4b0aa4c7f51 /external/ikvm/openjdk/sun/reflect/Reflection.java
parentd0a215f5626219ff7927f576588a777e5331c7be (diff)
downloadmono-upstream/3.2.8+dfsg.tar.gz
Imported Upstream version 3.2.8+dfsgupstream/3.2.8+dfsg
Diffstat (limited to 'external/ikvm/openjdk/sun/reflect/Reflection.java')
-rw-r--r--external/ikvm/openjdk/sun/reflect/Reflection.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/external/ikvm/openjdk/sun/reflect/Reflection.java b/external/ikvm/openjdk/sun/reflect/Reflection.java
index 5d237a6356..6cff5746d4 100644
--- a/external/ikvm/openjdk/sun/reflect/Reflection.java
+++ b/external/ikvm/openjdk/sun/reflect/Reflection.java
@@ -63,6 +63,14 @@ public class Reflection {
methodFilterMap.put(sun.misc.Unsafe.class, new String[] {"getUnsafe"});
}
+ /** Returns the class of the caller of the method calling this method,
+ ignoring frames associated with java.lang.reflect.Method.invoke()
+ and its implementation. */
+ @CallerSensitive
+ public static Class getCallerClass() {
+ return getCallerClass(2);
+ }
+
/** Returns the class of the method <code>realFramesToSkip</code>
frames up the stack (zero-based), ignoring frames associated
with java.lang.reflect.Method.invoke() and its implementation.
@@ -72,6 +80,7 @@ public class Reflection {
java.lang.reflect.Method.invoke() and its implementation are
completely ignored and do not count toward the number of "real"
frames skipped. */
+ @CallerSensitive
public static native Class getCallerClass(int realFramesToSkip);
/** Retrieves the access flags written to the class file. For