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

javac ignores any -J option in @argfiles silently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 16, 17, 18
    • 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

            cstein Christian Stein
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: