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

jlink ToolProvider doesn't support @files

XMLWordPrintable

    • x86_64
    • windows_10

      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


            sundar Sundararajan Athijegannathan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: