RFR: 8349475: Test tools/javac/api/TestJavacTaskWithWarning.java writes files in src dir
Jan Lahoda
jlahoda at openjdk.org
Mon Feb 10 17:05:20 UTC 2025
On Fri, 7 Feb 2025 22:31:41 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> Correct generating files into the work directory, not the directory of test sources.
I think we usually use `"."`/current working directory as the target for temporary files. Like here:
https://github.com/openjdk/jdk/blob/ab66c82ce9fdb5ee3fd7690f42b8ad4d78bf5e40/test/langtools/tools/javac/ClassPathTest/ClassPathTest.java#L87
I think it is a test's "working directory".
But `test.classes` would probably work as well.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23527#issuecomment-2648687036
More information about the compiler-dev
mailing list