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

Multiple arguments for the same option - aggragation broken.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • internal
    • internal
    • tools

      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.

            herrick Andy Herrick (Inactive)
            herrick Andy Herrick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: