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

Multiple arguments for the same option - aggragation broken.

    Details

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

      Description

      Options who's value is a list can optionally be specified multiple times, so that :
        --java-options "-server -ea -Dfoo=bar"
      is the same as
        --java-options -server --java-options "--ea -Dfoo=bar"
      or
        --java-options -server --java-options -ea --java-options -Dfoo=bar

      This is broken for --add-modules:
        "--add-modules me.mymodule,other.mod"
      works fine, but:
        "--add-modules me.mymodule --add-modules other.mod"
      results in error message:
      "Module [me.mymodule

      other.mod] does not exist."

      Clearly this is a simple bug where wrong delimiter is used when aggregating these two options, but we need to check all options that are allowed to be aggragated.

        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: