mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8135131: Enable thin server mode in Sjavac
State tracknig and incremental compilation disabled unless --state-dir is provided. Reviewed-by: jlahoda
This commit is contained in:
parent
2a12715485
commit
6238d40db4
25 changed files with 304 additions and 182 deletions
|
@ -53,7 +53,7 @@ public class IncCompInheritance extends SjavacBase {
|
|||
|
||||
// Initial compile (should succeed)
|
||||
String server = "--server:portfile=testserver,background=false";
|
||||
int rc1 = compile(server, "-d", classes, src);
|
||||
int rc1 = compile(server, "-d", classes, "--state-dir=" + classes, src);
|
||||
if (rc1 != 0)
|
||||
throw new AssertionError("Compilation failed unexpectedly");
|
||||
|
||||
|
@ -65,7 +65,7 @@ public class IncCompInheritance extends SjavacBase {
|
|||
// Incremental compile (C should now be recompiled even though it
|
||||
// depends on A only through inheritance via B).
|
||||
// Since A.m is removed, this should fail.
|
||||
int rc2 = compile(server, "-d", classes, src);
|
||||
int rc2 = compile(server, "-d", classes, "--state-dir=" + classes, src);
|
||||
if (rc2 == 0)
|
||||
throw new AssertionError("Compilation succeeded unexpectedly");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue