< prev index next >
src/java.base/share/classes/jdk/internal/misc/JavaLangReflectModuleAccess.java
Print this page
*** 64,98 ****
* Updates module m to read all unnamed modules.
*/
void addReadsAllUnnamed(Module m);
/**
! * Updates module m1 to export a package to module m2. The export does
! * not result in a strong reference to m2 (m2 can be GC'ed).
*/
! void addExports(Module m1, String pkg, Module m2);
/**
! * Updates module m1 to open a package to module m2. Opening the
! * package does not result in a strong reference to m2 (m2 can be GC'ed).
*/
! void addOpens(Module m1, String pkg, Module m2);
/**
! * Updates a module m to export a package to all modules.
*/
! void addExportsToAll(Module m, String pkg);
/**
* Updates a module m to open a package to all modules.
*/
! void addOpensToAll(Module m, String pkg);
/**
! * Updates a module m to export a package to all unnamed modules.
*/
! void addExportsToAllUnnamed(Module m, String pkg);
/**
* Updates a module m to open a package to all unnamed modules.
*/
void addOpensToAllUnnamed(Module m, String pkg);
--- 64,98 ----
* Updates module m to read all unnamed modules.
*/
void addReadsAllUnnamed(Module m);
/**
! * Update module m to export a package to all modules.
*/
! void addExports(Module m, String pn);
/**
! * Updates module m1 to export a package to module m2. The export does
! * not result in a strong reference to m2 (m2 can be GC'ed).
*/
! void addExports(Module m1, String pkg, Module m2);
/**
! * Updates a module m to export a package to all unnamed modules.
*/
! void addExportsToAllUnnamed(Module m, String pkg);
/**
* Updates a module m to open a package to all modules.
*/
! void addOpens(Module m, String pkg);
/**
! * Updates module m1 to open a package to module m2. Opening the
! * package does not result in a strong reference to m2 (m2 can be GC'ed).
*/
! void addOpens(Module m1, String pkg, Module m2);
/**
* Updates a module m to open a package to all unnamed modules.
*/
void addOpensToAllUnnamed(Module m, String pkg);
*** 101,115 ****
* Updates a module m to use a service.
*/
void addUses(Module m, Class<?> service);
/**
- * Add a package to the given module.
- */
- void addPackage(Module m, String pkg);
-
- /**
* Returns the ServicesCatalog for the given Layer.
*/
ServicesCatalog getServicesCatalog(Layer layer);
/**
--- 101,110 ----
*** 121,134 ****
/**
* Returns a stream of the layers that have modules defined to the
* given class loader.
*/
Stream<Layer> layers(ClassLoader loader);
-
- /**
- * Tests if a module exports a package at least {@code other} via its
- * module declaration.
- *
- * @apiNote This is a temporary method for debugging features.
- */
- boolean isStaticallyExported(Module module, String pn, Module other);
}
\ No newline at end of file
--- 116,121 ----
< prev index next >