equal
deleted
inserted
replaced
1673 * |
1673 * |
1674 * @exception SecurityException if the caller does not have |
1674 * @exception SecurityException if the caller does not have |
1675 * permission to access members. |
1675 * permission to access members. |
1676 * @exception NullPointerException if the <code>clazz</code> argument is |
1676 * @exception NullPointerException if the <code>clazz</code> argument is |
1677 * <code>null</code>. |
1677 * <code>null</code>. |
|
1678 * |
|
1679 * @deprecated This method relies on the caller being at a stack depth |
|
1680 * of 4 which is error-prone and cannot be enforced by the runtime. |
|
1681 * Users of this method should instead invoke {@link #checkPermission} |
|
1682 * directly. This method will be changed in a future release |
|
1683 * to check the permission {@code java.security.AllPermission}. |
|
1684 * |
1678 * @see java.lang.reflect.Member |
1685 * @see java.lang.reflect.Member |
1679 * @since JDK1.1 |
1686 * @since JDK1.1 |
1680 * @see #checkPermission(java.security.Permission) checkPermission |
1687 * @see #checkPermission(java.security.Permission) checkPermission |
1681 */ |
1688 */ |
|
1689 @Deprecated |
1682 @CallerSensitive |
1690 @CallerSensitive |
1683 public void checkMemberAccess(Class<?> clazz, int which) { |
1691 public void checkMemberAccess(Class<?> clazz, int which) { |
1684 if (clazz == null) { |
1692 if (clazz == null) { |
1685 throw new NullPointerException("class can't be null"); |
1693 throw new NullPointerException("class can't be null"); |
1686 } |
1694 } |