Searched defs:getCallerClass (Results 1 - 3 of 3) sorted by relevance

/openjdk7/jdk/test/sun/reflect/
H A DGetCallerClass.java27 * @summary Test sun.reflect.Reflection.getCallerClass(int) disabled by default
50 throw new RuntimeException("Reflection.getCallerClass should not be allowed");
63 public Class<?> getCallerClass() { method in class:GetCallerClass
64 // 0: Reflection 1: getCallerClass 2: Test.test 3: main
65 return sun.reflect.Reflection.getCallerClass(3);
71 return new GetCallerClass().getCallerClass();
75 return sun.reflect.Reflection.getCallerClass();
80 Class<?> c = sun.reflect.Reflection.getCallerClass(1);
97 Class<?> c = sun.reflect.Reflection.getCallerClass(4);
/openjdk7/jdk/src/share/classes/java/lang/reflect/
H A DMethod.java595 // can't call Reflection.getCallerClass() here
596 // Workaround for now: add a frame getCallerClass to
598 Class<?> caller = getCallerClass();
613 private Class<?> getCallerClass() { method in class:Method
614 // Reflection.getCallerClass() currently returns the frame at depth 2
616 return Reflection.getCallerClass();
/openjdk7/jdk/src/share/classes/sun/reflect/
H A DReflection.java59 public static native Class getCallerClass(); method in class:Reflection
67 public static Class getCallerClass(int depth) { method in class:Reflection
94 /** A quick "fast-path" check to try to avoid getCallerClass()

Completed in 252 milliseconds