changeset 13522:3a0dcb0595da

Remove use of Module.addExports from IIOMetadata in preparation for restricting addExports
author alanb
date Sun, 26 Jul 2015 12:13:07 +0100
parents 144701234109
children 6627ac63d7ee
files src/java.desktop/share/classes/javax/imageio/metadata/IIOMetadata.java test/javax/imageio/plugins/external_plugin_tests/src/simp/module-info.java
diffstat 2 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/javax/imageio/metadata/IIOMetadata.java	Sun Jul 26 11:41:35 2015 +0100
+++ b/src/java.desktop/share/classes/javax/imageio/metadata/IIOMetadata.java	Sun Jul 26 12:13:07 2015 +0100
@@ -424,14 +424,6 @@
         if (!thisModule.canRead(targetModule)) {
             thisModule.addReads(targetModule);
         }
-
-        if (thisModule.isNamed()) {
-            int i = formatClassName.lastIndexOf(".");
-            String pn = i > 0 ? formatClassName.substring(0, i) : "";
-            if (!targetModule.isExported(pn, thisModule)) {
-                targetModule.addExports(pn, thisModule);
-            }
-        }
         return c;
     }
 
--- a/test/javax/imageio/plugins/external_plugin_tests/src/simp/module-info.java	Sun Jul 26 11:41:35 2015 +0100
+++ b/test/javax/imageio/plugins/external_plugin_tests/src/simp/module-info.java	Sun Jul 26 12:13:07 2015 +0100
@@ -1,4 +1,5 @@
 module simp {
     requires java.desktop;
+    exports simp to java.desktop;
     provides javax.imageio.spi.ImageReaderSpi with simp.SIMPImageReaderSpi;
 }