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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Due:
              Created:
              Updated:
              Resolved: