RFR 8154447: Exempt classes under java.util.concurrent from MH.Lookup restrictions

Mandy Chung mandy.chung at oracle.com
Tue Apr 26 22:18:02 UTC 2016

> On Apr 26, 2016, at 3:01 PM, Paul Sandoz <paul.sandoz at oracle.com> wrote:
> Hi,
> Please review:
>  http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8154447-mh-lookup-restricted-pkgs/webrev/ <http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8154447-mh-lookup-restricted-pkgs/webrev/>
>  https://bugs.openjdk.java.net/browse/JDK-8154447 <https://bugs.openjdk.java.net/browse/JDK-8154447>
> This is a quick fix to allow classes under java.util.concurrent to call MethodHandles.lookup(), and thus unblock the use of such classes using VarHandles.

This quick fix looks okay to me.  This big hammer check was intended to be an expedient way to address a past security concern and should be replaced.


More information about the core-libs-dev mailing list