changeset 4273:5a5b5ef095c4

more updates for module statement modifiers
author jjg
date Wed, 24 Aug 2016 13:04:11 -0700
parents 3c440892cf45
children 1898244b4732
files src/jdk.compiler/share/classes/com/sun/tools/javac/tree/Pretty.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/Pretty.java	Tue Aug 23 19:49:42 2016 -0700
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/Pretty.java	Wed Aug 24 13:04:11 2016 -0700
@@ -458,6 +458,10 @@
     public void visitExports(JCExports tree) {
         try {
             print("exports ");
+            if (tree.isDynamicPhase)
+                print("dynamic ");
+            if (tree.isPrivate)
+                print("private ");
             printExpr(tree.qualid);
             if (tree.moduleNames != null) {
                 print(" to ");
@@ -486,8 +490,10 @@
     public void visitRequires(JCRequires tree) {
         try {
             print("requires ");
+            if (tree.isStaticPhase)
+                print("static ");
             if (tree.isTransitive)
-                print("public ");
+                print("transitive ");
             printExpr(tree.moduleName);
             print(";");
         } catch (IOException e) {