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

--add-modules ALL-MODULE-PATH is not handled properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:

      Description

      When the value of the --add-modules option contains ALL-MODULE-PATH JLinkBundlerHelper.ModuleHelper.getModuleNamesFromPath() is invoked to get a list of all modules on the path.
      This is broken for modular jar files, since it only returns the root of the file name, which may or may not be the name of the module.
      When it is not, jlink is given a module it cannot find and throws and exception.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              herrick Andy Herrick
              Reporter:
              herrick Andy Herrick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: