diff -r 9a742b6b95d3 -r d29aff18b2f6 langtools/test/tools/sjavac/PackagePathMismatch.java --- a/langtools/test/tools/sjavac/PackagePathMismatch.java Tue Nov 03 21:29:46 2015 +0100 +++ b/langtools/test/tools/sjavac/PackagePathMismatch.java Tue Nov 03 22:55:30 2015 +0100 @@ -47,8 +47,10 @@ "package a.b.c; class Test { }"); // Compile should fail since package a.b.c does not match path a/x/c. - String server = "--server:portfile=testserver,background=false"; - int rc1 = compile(server, "-d", classes, src); + int rc1 = compile("--server:portfile=testserver,background=false", + "-d", classes, + "--state-dir=" + classes, + src); if (rc1 == 0) throw new AssertionError("Compilation succeeded unexpectedly"); }