RFR: 8271611: Use SecurityConstants.ACCESS_PERMISSION in MethodHandles

Claes Redestad redestad at openjdk.java.net
Mon Aug 2 13:36:42 UTC 2021


Reusing SecurityConstants.ACCESS_PERMISSION (which was moved from AccessibleObject by JDK-8202419) avoids initialization of ReflectPermission when no SecurityManager is installed

-------------

Commit messages:
 - Use SecurityConstants.ACCESS_PERMISSION in MethodHandles

Changes: https://git.openjdk.java.net/jdk/pull/4957/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4957&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8271611
  Stats: 5 lines in 1 file changed: 0 ins; 3 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4957.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4957/head:pull/4957

PR: https://git.openjdk.java.net/jdk/pull/4957


More information about the core-libs-dev mailing list