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

Add new AccessController.callPrivileged methods for easy use with lambda

XMLWordPrintable

      The overloads make it cumbersome to use this feature with lambda expressions:

      http://mail.openjdk.java.net/pipermail/security-dev/2013-May/007434.html

      Suggest to rename the variant which take a PrivilegedExceptionAction argument to make this possible:
         AccessController.doPrivileged(() -> some());

      This bug is filed to follow up some review comments:

      [1] http://mail.openjdk.java.net/pipermail/security-dev/2013-May/007593.html
      [2] http://mail.openjdk.java.net/pipermail/security-dev/2013-June/007673.html

            mullan Sean Mullan
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: