setAccessible() alternative with Jigsaw - feedback on Lookup
Matej Novotny
manovotn at redhat.com
Wed Apr 26 14:04:08 UTC 2017
> 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?
Also checking on j.l.r.Proxy, it uses the "good old" Unsafe.defineClass.
Can't really see any module-related magic there.
Matej
More information about the jigsaw-dev
mailing list