Lookup objects and setAccessible

Kasper Nielsen kasperni at gmail.com
Wed Jan 8 11:14:30 UTC 2020


Hi,

I'm trying to bridge some old code using java.lang.reflect and some new code
that uses Lookup objects. And I'm wondering if there is some way to make
a member accessible using a Lookup object? Or if open packages/modules via
module-info.java + member.setAccessible(true) is the only way?

Thanks
  Kasper


More information about the jigsaw-dev mailing list