--- old/src/share/classes/java/lang/SecurityManager.java 2013-03-28 18:42:47.000000000 -0700
+++ new/src/share/classes/java/lang/SecurityManager.java 2013-03-28 18:42:47.000000000 -0700
@@ -1675,10 +1675,18 @@
* permission to access members.
* @exception NullPointerException if the clazz
argument is
* null
.
+ *
+ * @deprecated This method relies on the caller being at a stack depth
+ * of 4 which is error-prone and cannot be enforced by the runtime.
+ * This method will be modified to throw {@code SecurityException}
+ * in a future release. Use the {@link #checkPermission}
+ * method instead to perform the appropriate permission check.
+ *
* @see java.lang.reflect.Member
* @since JDK1.1
* @see #checkPermission(java.security.Permission) checkPermission
*/
+ @Deprecated
public void checkMemberAccess(Class> clazz, int which) {
if (clazz == null) {
throw new NullPointerException("class can't be null");