On Mar 11, 2017, at 9:55 AM, Michael Rasmussen <michael.rasmus...@zeroturnaround.com> wrote: > > What should the Lookup be based on though, since you don't have a Class yet?
Lookups are designed to represent computations in the context of a pre-existing class. I guess a Lookup for this use case would have to be based on a pre-existing package, not a class. Adding disembodied packages (and modules) to the Lookup API would be a reasonable extension. Likewise, it would be reasonable to extend Lookups to embody the access rights of one package which is using a qualified export from another package. We are going a little slow on such extensions because we don't want to add seldom-used complexity. But we *do* expect to cover, eventually, all the U.dAC use cases, and feedback like this is how we'll get there. https://bugs.openjdk.java.net/browse/JDK-8171335 — John