< prev index next >
src/java.base/share/classes/jdk/internal/misc/JavaLangReflectModuleAccess.java
Print this page
@@ -64,35 +64,35 @@
* 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).
+ * Update module m to export a package to all modules.
*/
- void addExports(Module m1, String pkg, Module m2);
+ void addExports(Module m, String pn);
/**
- * 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).
+ * 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 addOpens(Module m1, String pkg, Module m2);
+ void addExports(Module m1, String pkg, Module m2);
/**
- * Updates a module m to export a package to all modules.
+ * Updates a module m to export a package to all unnamed modules.
*/
- void addExportsToAll(Module m, String pkg);
+ void addExportsToAllUnnamed(Module m, String pkg);
/**
* Updates a module m to open a package to all modules.
*/
- void addOpensToAll(Module m, String pkg);
+ void addOpens(Module m, String pkg);
/**
- * Updates a module m to export a package to all unnamed modules.
+ * 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 addExportsToAllUnnamed(Module m, String pkg);
+ 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,15 +101,10 @@
* 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);
/**
@@ -121,14 +116,6 @@
/**
* 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
< prev index next >