javac ignores any -J option in @argfiles silently

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 16, 17, 18
    • Component/s: tools
    • None
    • b26
    • generic
    • generic

      File: args
      -J-verbose

      $ javac @args Main.java

      javac neither supports -J options from argfile (no verbose class loading messages printed by the above javac command) nor reports an error.

      The -J option could be invalid VM option as well.

      File: args
      -J-xyz

      @javac @args Main.java

      Observed: silent compilation
      Expected: error message

      I verified this with jdk 16 as well as latest local build of "jdk" repo

            Assignee:
            Christian Stein
            Reporter:
            Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: