On 11.07.2017 12:11, Alan Bateman wrote:
On 11/07/2017 10:16, Uwe Schindler wrote:
[...]

But now it is impossible for us to check, if something is not open by
default.
Module::getDescriptor will return the module descriptor for named
modules. So in this case, Object.class.getModule().getDescriptor()
returns the ModuleDescriptor for java.base so you can inspect the
packages and which are exported and/or opened before being changed by
runtime. So there is enough in the API to determine which packages have
been opened at runtime (either via CLI options or APIs).

we need that on the level of a class member. Not every method in a class from an exported package is accessible or has been made accessible via runtime mechanisms.

bye Jochen

Reply via email to