Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8176815

Remove StackFramePermission and use RuntimePermission for stack walking

XMLWordPrintable

    • b162
    • Verified

        StackFramePermission has only a target "retainClassReference". StackWalker::getInstance method will perform this permission check when it requests Option.RETAIN_CLASS_REFERENCE to retain class reference.

        Defining a new type is overkill. This proposes to replace the StackWalker permission check with RuntimePermission("getStackWalkerWithClassReference"). Remove StackFramePermission

              mchung Mandy Chung (Inactive)
              mchung Mandy Chung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: