RFR: 8272728: javac ignores any -J option in @argfiles silently

Athijegannathan Sundararajan sundar at openjdk.java.net
Mon Oct 25 08:53:04 UTC 2021


On Mon, 11 Oct 2021 12:20:02 GMT, Christian Stein <cstein at openjdk.org> wrote:

> Make javac error on `-J` being present in `@argfiles` or other locations, where the launcher didn't process and remove them.

test/langtools/tools/javac/options/modes/AtFilesTest.java line 75:

> 73:             .checkResult(Main.Result.CMDERR.exitCode)
> 74:             .checkLog(Log.DIRECT, "-J-verbose");
> 75:     }

Should we add a test that for invalid option as well? -J-non_existent_option ?

-------------

PR: https://git.openjdk.java.net/jdk/pull/5891


More information about the compiler-dev mailing list