langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java
changeset 43376 f165c71d9e03
parent 43375 0945845b891f
child 43649 add9e8c9b20b
child 44191 adc8e954fe5b
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java	Mon Jan 30 15:08:38 2017 -0800
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/PrintingProcessor.java	Mon Jan 30 17:43:18 2017 -0800
@@ -306,9 +306,9 @@
             defaultAction(e, false);
 
             if (!e.isUnnamed()) {
-                // TODO: openness of the module not currently exposed
-                // by the language model API, but should be printed
-                // here once available.
+                if (e.isOpen()) {
+                    writer.print("open ");
+                }
                 writer.println("module " + e.getQualifiedName() + " {");
                 indentation++;
                 for (ModuleElement.Directive directive : e.getDirectives()) {