jdk.internal.reflect.ReflectionFactory and SecurityManager
Chris Hegarty
chris.hegarty at oracle.com
Wed Jan 11 15:03:59 UTC 2017
On 01/11/2017 02:55 AM, Paul Sandoz wrote:
> I am concerned it’s getting too late to twiddle with the security setting so i took the plunge and wrapped the privateLookupIn calls in doPrivileged blocks. It’s ugly but avoids the circularity (JPRT core/hotspot testing has not failed).
>
> http://cr.openjdk.java.net/~psandoz/jdk9/8160710-thread-to-tlr/webrev/
This looks good.
Trivially, the comment, "Initialized lazily on demand”, applies to the
lazy instantiation of the static nested class rather than the fields
themselves. I wonder if it would be better at the nested class level,
rather than at the fields.
-Chris.
More information about the core-libs-dev
mailing list