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

Add a convenience AccessControlContext factory

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • core-libs
    • None
    • b89
    • generic
    • generic

    Backports

      Description

        We use doPrivileged with restricted AccessControlContext in several places. It's repetitive code where we need to create a permission array, then a permission collection, then the access control context object. Having an easy to use convenience factory for this functionality would allow us to more robustly create these with less possibility for error and to more easily use the more efficient doPrivileged(PrivilegedAction, AccessControlContext) method instead of doPrivileged(PrivilegedAction, AccessControlContext, Permission...)

        Attachments

          Issue Links

            Activity

              People

                attila Attila Szegedi
                attila Attila Szegedi
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: