Review request for 7198429: need checked categorization of caller-sensitive methods in the JDK

Mandy Chung mandy.chung at
Fri Mar 29 02:57:25 UTC 2013

On 3/28/2013 1:54 AM, John Rose wrote:
> On Mar 27, 2013, at 10:35 AM, Mandy Chung <mandy.chung at> wrote:
>> 1. I am working on a fix for 8007035 that proposes to deprecate SecurityManager.checkMemberAccess method as it requires the caller’s frame to be at a stack depth of four, which is fragile and difficult to enforce.
> Where you test c=smgr.getClass(), c == SecurityManager.class you should also add
> || c.getMethod("checkSecurityManager", ...).getDeclaringClass() == SecurityManager.class.
> That will accurately detect overloading.

With the fix for 8007035, this test will no longer be needed.  I just 
posted the code review for 8007035 [1].   I'll send out a webrev with 
both fixes once 8007035 is reviewed.


More information about the core-libs-dev mailing list