-
Type:
Enhancement
-
Resolution: Won't Fix
-
Priority:
P2
-
None
-
Affects Version/s: 8
-
Component/s: security-libs
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
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
- relates to
-
JDK-8159525 Add @FunctionalInterface annotation to PrivilegedAction and PrivilegedExceptionAction
-
- Resolved
-
-
JDK-8014097 add doPrivileged methods with limited privilege scope
-
- Closed
-