[Nestmates] RFR (S): Support access to VM annotations from nonfindable classes
Vladimir Ivanov
vladimir.x.ivanov at oracle.com
Thu Nov 1 08:13:14 UTC 2018
FTR some time ago I tried a different approach based on access checks
provided by the module system [1]. It covers broader scope in a uniform
manner, but also more involved and doesn't fit well existing class
loading machinery [2].
Best regards,
Vladimir Ivanov
[1]
http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-February/025976.html
[2] It does proper access checks very late in the class loading process
optimistically assuming all annotations are accessible and initiate
reparsing if any of used ones aren't accessible to the class being loaded.
On 31/10/2018 14:18, Lois Foltan wrote:
> Please review the following change as part of the ongoing prototyping
> work to support MethodHandle Lookup functionality to define a nestmate
> class. In particular this fix allows access to VM annotations for
> nonfindable classes.
>
> webrev:
> http://cr.openjdk.java.net/~lfoltan/wrk_nestLookupDefineClass_annotations.1/webrev/
>
> bug: https://bugs.openjdk.java.net/browse/JDK-8171335
>
> Thanks,
> Lois
More information about the valhalla-dev
mailing list