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

jlink ToolProvider doesn't support @files

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      A DESCRIPTION OF THE PROBLEM :
      The jlink command-line tool supports @files, but its ToolProvider implementation doesn't

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Open jshell and execute the following line:
      java.util.spi.ToolProvider.findFirst("jlink").get().run(new PrintWriter(System.out, true), new PrintWriter(System.err, true), "@jlink.args")

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The "@jlink.args" argument is accepted (note that if "jlink.args" doesn't actually exist, it's expected that there'll be an error such as: "Error: could not open `jlink.args'")

      ACTUAL -
      jshell> java.util.spi.ToolProvider.findFirst("jlink").get().run(new PrintWriter(System.out, true), new PrintWriter(System.err, true), "@jlink.args")
      Error: invalid argument: @jlink.args
      Usage: jlink <options> --module-path <modulepath> --add-modules <module>[,<module>...]
      Use --help for a list of possible options
      $1 ==> 2

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sundar Sundararajan Athijegannathan
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: