mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-16 10:53:31 +00:00
8154268: [TESTBUG] Compilation of ExportAllUnnamed.java failed, missing @modules
Add missing @modules and @build tags Reviewed-by: ctornqvi, lfoltan, gtriantafill
This commit is contained in:
parent
633da50166
commit
33aa33f03a
@ -28,11 +28,12 @@
|
||||
* @summary Test if package p2 in module m2 is exported to all unnamed,
|
||||
* then class p1.c1 in an unnamed module can read p2.c2 in module m2.
|
||||
* @library /testlibrary /test/lib
|
||||
* @modules java.base/jdk.internal.module
|
||||
* @compile myloaders/MySameClassLoader.java
|
||||
* @compile p2/c2.java
|
||||
* @compile p1/c1.java
|
||||
* @compile -XaddExports:java.base/jdk.internal.module=ALL-UNNAMED ExportAllUnnamed.java
|
||||
* @run main/othervm -XaddExports:java.base/jdk.internal.module=ALL-UNNAMED -Xbootclasspath/a:. ExportAllUnnamed
|
||||
* @build ExportAllUnnamed
|
||||
* @run main/othervm -Xbootclasspath/a:. ExportAllUnnamed
|
||||
*/
|
||||
|
||||
import static jdk.test.lib.Asserts.*;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user