Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8165896

Use "open" flag from JVM_DefineModule to export all module packages

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • 9
    • hotspot
    • b21

      An open module doesn't declare any exports and instead, all packages are unqualifiedly exported.
      In the jlr.Module implementation the isExported(-Private) methods return true when the module is open. There is no need to keep any data structures for exports. Also, methods like addExports are no-ops with open modules.
      For now, the implementation special cases the instantiatation of open modules so that the VM is called to export each package. Instead, we should use the JVM_DefineModule "open" flag to equate to exporting all packages unqualifiedly.

            rprotacio Rachel Protacio (Inactive)
            lfoltan Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: