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

Remove StackFramePermission and use RuntimePermission for stack walking

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b162
    • Verification:
      Verified

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mchung Mandy Chung
                Reporter:
                mchung Mandy Chung
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: