jdk.internal.reflect.ReflectionFactory and SecurityManager
Paul Sandoz
paul.sandoz at oracle.com
Wed Jan 11 16:43:06 UTC 2017
> On 11 Jan 2017, at 07:03, Chris Hegarty <chris.hegarty at oracle.com> wrote:
>
>
> 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.
>
Yes, i will do that.
Thanks,
Paul.
More information about the core-libs-dev
mailing list