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

JLink: IllegalArgumentException thrown if modules with the same packages are encountered on the plugin module path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9-repo-jigsaw
    • Fix Version/s: None
    • Component/s: tools
    • Labels:

      Description

      JLink: IllegalArgumentException thrown if modules with the same packages are encountered on the plugin module path

      To reproduce:
      1. create two modules which provides two services which are in the same package, but in different modules;
      2. run jlink --plugins-modulepath . --list-plugins

      java.lang.IllegalArgumentException: Modules customplugin_1 and customplugin both contain package plugin
              at java.lang.ModuleClassLoader.<init>(java.base@9.0/ModuleClassLoader.java:119)
              at java.lang.ModuleClassLoader.<init>(java.base@9.0/ModuleClassLoader.java:165)
              at java.lang.ModuleClassLoader.<init>(java.base@9.0/ModuleClassLoader.java:147)
              at jdk.tools.jlink.TaskHelper.createPluginsLayer(jdk.jlink@9.0/TaskHelper.java:815)
              at jdk.tools.jlink.TaskHelper$PluginsOptions.<init>(jdk.jlink@9.0/TaskHelper.java:173)
              at jdk.tools.jlink.TaskHelper$PluginsOptions.<init>(jdk.jlink@9.0/TaskHelper.java:152)
              at jdk.tools.jlink.TaskHelper$OptionsHelper.handleOptions(jdk.jlink@9.0/TaskHelper.java:501)
              at jdk.tools.jlink.JlinkTask.run(jdk.jlink@9.0/JlinkTask.java:186)
              at jdk.tools.jlink.Main.run(jdk.jlink@9.0/Main.java:48)

        Attachments

          Activity

            People

            Assignee:
            jfdenise Jean-Francois Denise (Inactive)
            Reporter:
            aeremeev Andrei Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: