changeset 12822:8346c00b2ba6

8182416: Clean up module-info.java like move requires transitive adjacent to exports Reviewed-by: alanb
author mchung
date Sat, 17 Jun 2017 11:50:50 -0700
parents 032a5041e20a
children 516a043eb368 16c9c159df90
files src/jdk.aot/share/classes/module-info.java src/jdk.internal.vm.compiler/share/classes/module-info.java
diffstat 2 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.aot/share/classes/module-info.java	Sat Jun 17 08:03:09 2017 +0100
+++ b/src/jdk.aot/share/classes/module-info.java	Sat Jun 17 11:50:50 2017 -0700
@@ -23,8 +23,15 @@
  * questions.
  */
 
+/**
+ * Defines the Ahead-of-Time (AOT) compiler, <em>{@index jaotc jaotc tool}</em>,
+ * for compiling Java classes into AOT library.
+ *
+ * @moduleGraph
+ * @since 9
+ */
 module jdk.aot {
-    requires jdk.management;
     requires jdk.internal.vm.ci;
     requires jdk.internal.vm.compiler;
+    requires jdk.management;
 }
--- a/src/jdk.internal.vm.compiler/share/classes/module-info.java	Sat Jun 17 08:03:09 2017 +0100
+++ b/src/jdk.internal.vm.compiler/share/classes/module-info.java	Sat Jun 17 11:50:50 2017 -0700
@@ -26,11 +26,9 @@
 module jdk.internal.vm.compiler {
     requires java.instrument;
     requires java.management;
+    requires jdk.internal.vm.ci;
     requires jdk.management;
-    requires jdk.internal.vm.ci;
-
-    // sun.misc.Unsafe is used
-    requires jdk.unsupported;
+    requires jdk.unsupported;   // sun.misc.Unsafe is used
 
     uses org.graalvm.compiler.code.DisassemblerProvider;
     uses org.graalvm.compiler.core.match.MatchStatementSet;