setAccessible() alternative with Jigsaw - feedback on Lookup

Andrew Dinn adinn at
Wed Apr 26 14:15:15 UTC 2017

On 26/04/17 15:04, Matej Novotny wrote:
>> You can spin one module per package, by creating one ModuleLayer per package,
>> not unlike j.l.r.Proxy does.
> Don't know a bit about it, but it sounds like a way worth exploring.
> Would you have a pointer towards some code showing how to deal with ModuleLayers?

You could take a look at the 4.0.0-BETA branch of the byteman agent.

Modules layer and jigsaw (in the subdirs of the same name) contain code
which creates a single Byteman module but that is enough to get you started.


Andrew Dinn
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander

More information about the jigsaw-dev mailing list