changeset 10914:9f4012fe09ab

8154268: [TESTBUG] Compilation of ExportAllUnnamed.java failed, missing @modules Summary: Add missing @modules and @build tags Reviewed-by: ctornqvi, lfoltan, gtriantafill
author hseigel
date Mon, 18 Apr 2016 13:42:52 -0400
parents f523b7ad0685
children e0237cba9b5c
files test/runtime/modules/AccessCheck/ExportAllUnnamed.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/modules/AccessCheck/ExportAllUnnamed.java	Fri Apr 15 17:17:58 2016 +0200
+++ b/test/runtime/modules/AccessCheck/ExportAllUnnamed.java	Mon Apr 18 13:42:52 2016 -0400
@@ -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.*;