Alternative mechanism for reflective access control (#ReflectiveAccessToNonExportedTypes / #AwkwardStrongEncapsulation)
adinn at redhat.com
Thu Sep 29 08:54:51 UTC 2016
On 28/09/16 19:09, Alan Bateman wrote:
> On 28/09/2016 13:22, Andrew Dinn wrote:
>> I'd be happy to try to conduct such an experiment. Can you provide links
>> to the relevant JIRAs.
> The javadoc for MethodsHandes.Lookup is probably the best place to
> start, assuming you haven't used it before. This has a good section to
> explain how access checking differs to core reflection.
> JDK-8162494  is one issue where John has a write-up with some straw
> man designs. I suspect it will require working through a few specific
> examples to get a feel for what is the right direction.
Thanks, I'll look into this as soon as I can. In particular I will see
if I can use it in Byteman instead of reflection (the need to do some
class rewriting means an agent is probably the best initial candidate
for testing this).
More information about the jigsaw-dev