test/tools/sjavac/IncCompInheritance.java

Print this page
rev 2819 : imported patch my-classpath-deps-00

*** 55,64 **** --- 55,65 ---- int rc1 = compile(server, "-d", classes, src); if (rc1 != 0) throw new AssertionError("Compilation failed unexpectedly"); // Remove method A.m + Thread.sleep(1000); // Make sure we get a new timestamp String aModified = "package pkga; public class A { }"; toolbox.writeFile(src.resolve("pkga/A.java"), aModified); // Incremental compile (C should now be recompiled even though it // depends on A only through inheritance via B).