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

Add a convenience AccessControlContext factory

XMLWordPrintable

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

        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...)

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

                Created:
                Updated:
                Resolved: