Review Request: JDK-8176815: Remove StackFramePermission and use RuntimePermission for stack walking

Mandy Chung mandy.chung at
Wed Mar 15 19:42:26 UTC 2017

StackWalker::getInstance is currently specified to check for StackFramePermission("retainClassReference“) due to an early review feedback .  Given it has only one target, it’s overkill to define a specific permission type for stack walking use.   This patch proposes to replace the StackWalker permission check with RuntimePermission("getStackWalkerWithClassReference”) and remove StackFramePermission class.


More information about the core-libs-dev mailing list