RFR: 8295176: some langtools test pollutes source tree

Jan Lahoda jlahoda at openjdk.org
Mon Oct 17 09:41:54 UTC 2022


The `ReleaseOptionThroughAPI.java` test compiles another test source, `ReleaseOption.java`. But it does not specify the output directory, so javac generates the classfile next to the source files into the source directory, causing trouble.

The proposed fix is to add `-d .` to the test, so that the classfile is not generated into the working directory.

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

Commit messages:
 - 8295176: some langtools test pollutes source tree

Changes: https://git.openjdk.org/jdk/pull/10724/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10724&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8295176
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/10724.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10724/head:pull/10724

PR: https://git.openjdk.org/jdk/pull/10724


More information about the compiler-dev mailing list