/openjdk7/jdk/test/sun/reflect/ |
H A D | GetCallerClass.java | 27 * @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/test/sun/reflect/CallerSensitive/ |
H A D | MissingCallerSensitive.java | 42 final String method = "sun/reflect/Reflection.getCallerClass"; 65 Class<?> c = sun.reflect.Reflection.getCallerClass(); 70 Class<?> c = sun.reflect.Reflection.getCallerClass();
|
/openjdk7/jdk/src/share/classes/java/lang/reflect/ |
H A D | Field.java | 376 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 410 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 444 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 480 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 516 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 552 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 588 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 624 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 660 checkAccess(Reflection.getCallerClass(), clazz, obj, modifiers); 738 checkAccess(Reflection.getCallerClass(), claz [all...] |
H A D | Method.java | 595 // 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();
|
H A D | Proxy.java | 417 checkProxyAccess(Reflection.getCallerClass(), loader, interfaces); 716 checkProxyAccess(Reflection.getCallerClass(), loader, interfaces);
|
H A D | Constructor.java | 516 Class<?> caller = Reflection.getCallerClass();
|
/openjdk7/jdk/src/share/classes/java/sql/ |
H A D | DriverManager.java | 187 return (getConnection(url, info, Reflection.getCallerClass())); 215 return (getConnection(url, info, Reflection.getCallerClass())); 233 return (getConnection(url, info, Reflection.getCallerClass())); 253 Class<?> callerClass = Reflection.getCallerClass(); 325 if (isDriverAllowed(driver, Reflection.getCallerClass())) { 350 Class<?> callerClass = Reflection.getCallerClass();
|
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | AccessController.java | 301 return AccessController.doPrivileged(action, preserveCombiner(dc, Reflection.getCallerClass())); 400 return AccessController.doPrivileged(action, preserveCombiner(dc, Reflection.getCallerClass()));
|
/openjdk7/jdk/src/share/classes/java/lang/ |
H A D | Class.java | 191 ClassLoader.getClassLoader(Reflection.getCallerClass())); 263 ClassLoader ccl = ClassLoader.getClassLoader(Reflection.getCallerClass()); 330 checkMemberAccess(Member.PUBLIC, Reflection.getCallerClass(), false); 366 Class<?> caller = Reflection.getCallerClass(); 614 ClassLoader.checkClassLoaderPermission(cl, Reflection.getCallerClass()); 925 Reflection.getCallerClass(), true); 1062 Reflection.getCallerClass(), true); 1139 ClassLoader.getClassLoader(Reflection.getCallerClass()), true); 1328 checkMemberAccess(Member.PUBLIC, Reflection.getCallerClass(), false); 1404 checkMemberAccess(Member.PUBLIC, Reflection.getCallerClass(), tru [all...] |
H A D | Runtime.java | 783 load0(Reflection.getCallerClass(), filename); 837 loadLibrary0(Reflection.getCallerClass(), libname);
|
H A D | System.java | 1061 Runtime.getRuntime().load0(Reflection.getCallerClass(), filename); 1087 Runtime.getRuntime().loadLibrary0(Reflection.getCallerClass(), libname);
|
H A D | Package.java | 278 ClassLoader l = ClassLoader.getClassLoader(Reflection.getCallerClass()); 300 ClassLoader l = ClassLoader.getClassLoader(Reflection.getCallerClass());
|
H A D | ClassLoader.java | 1237 Reflection.getCallerClass().asSubclass(ClassLoader.class); 1404 checkClassLoaderPermission(parent, Reflection.getCallerClass()); 1472 checkClassLoaderPermission(scl, Reflection.getCallerClass());
|
H A D | Thread.java | 1453 Reflection.getCallerClass());
|
/openjdk7/jdk/src/share/classes/javax/sql/rowset/serial/ |
H A D | SerialJavaObject.java | 138 Class<?> caller = sun.reflect.Reflection.getCallerClass();
|
/openjdk7/jdk/src/share/classes/sun/reflect/ |
H A D | Reflection.java | 59 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()
|
/openjdk7/jdk/src/share/classes/java/io/ |
H A D | ObjectStreamField.java | 166 Class<?> caller = Reflection.getCallerClass();
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | ResourceBundle.java | 723 getLoader(Reflection.getCallerClass()), 766 getLoader(Reflection.getCallerClass()), 797 getLoader(Reflection.getCallerClass()), 843 getLoader(Reflection.getCallerClass()), 1681 clearCache(getLoader(Reflection.getCallerClass()));
|
/openjdk7/jdk/src/share/classes/java/lang/invoke/ |
H A D | MethodHandleProxies.java | 148 final Class<?> caller = Reflection.getCallerClass();
|
H A D | MethodHandleImpl.java | 897 Class<?> actual = Reflection.getCallerClass();
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/atomic/ |
H A D | AtomicIntegerFieldUpdater.java | 76 return new AtomicIntegerFieldUpdaterImpl<U>(tclass, fieldName, Reflection.getCallerClass());
|
H A D | AtomicReferenceFieldUpdater.java | 98 Reflection.getCallerClass());
|
H A D | AtomicLongFieldUpdater.java | 76 Class<?> caller = Reflection.getCallerClass();
|
/openjdk7/jdk/src/share/classes/java/util/logging/ |
H A D | Logger.java | 390 return demandLogger(name, null, Reflection.getCallerClass()); 438 Class<?> callerClass = Reflection.getCallerClass(); 531 Reflection.getCallerClass()); 1476 Class<?> clz = sun.reflect.Reflection.getCallerClass(ix);
|
/openjdk7/jdk/src/share/classes/sun/misc/ |
H A D | Unsafe.java | 88 Class cc = Reflection.getCallerClass();
|