The --add-opens option

You can use the --add-opens runtime option to allow your code to access non-public members. This can be referred to as deep reflection. Libraries that do this deep reflection are able to access all members, private and public. To grant this type of access to your code, you use the --add-opens option. Here is the syntax:

--add-opens <module>/<package>=<target-module>(,<target-module>)*

This allows the given module to open the specified package. The compiler will not produce any errors or warnings when this is used.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset