Integrated: 8249095: tools/javac/launcher/ fails on Windows

Jan Lahoda jlahoda at
Wed Oct 7 06:56:08 UTC 2020

On Thu, 1 Oct 2020 12:40:07 GMT, Jan Lahoda <jlahoda at> wrote:

> @rwestberg  prepared a script that runs various tests in GitHub Actions. But, sadly, with a recently proposed fix for
> Windows handling (see, the SourceLauncherTest is failing (the
> testNoSourceOnClassPath sub-test):
> I don't think this has much to do with javac (or source launcher) itself - the test fails while it tries to write the
> test source file, before the source launcher is invoked. So this patch tries to: a) avoid doing that; b)  improve
> ToolBox to check and reject file names that are reserved.  Note that testHelloWorldWithAux uses the name "Aux"
> intentionally, and it passes because it never actually writes file with name "Aux" - the source file will be (I
> believe) named "HelloWorld", and while it will contain also a class named "Aux", the classfile will only ever exist in
> memory, and won't be written as a file, so will not cause the issue.  The use of name "Aux" in the
> testNoSourceOnClassPath test does not seem to be necessary, and the issue happens in the test set-up, not while doing
> the actual test, so it seems fine to change the name.  @jonathan-gibbons, could you please take a look? Thanks!

This pull request has now been integrated.

Changeset: cd4faff0
Author:    Jan Lahoda <jlahoda at>
Stats:     29 lines in 2 files changed: 21 ins; 0 del; 8 mod

8249095: tools/javac/launcher/ fails on Windows

Reviewed-by: jjg



More information about the compiler-dev mailing list