mardi 25 décembre 2018

How do Java Module directives impacts reflection access into a module?

According to https://www.oracle.com/corporate/features/understanding-java-9-modules.html, the Java Module system introduces the following directives:

  • exports, exports ... to
  • uses
  • provides ... with
  • open, opens, opens ... to

What (if any) impact does each directive have on an external module accessing internal members using reflection?

For example, does exports <package> allow external modules to access all public, protected, private members of the exported package using reflection? What about the other directives?





Aucun commentaire:

Enregistrer un commentaire