< prev index next >

test/tools/sjavac/ClasspathDependencies.java

Print this page

        

*** 27,52 **** * @summary Make sure changes of public API on classpath triggers recompilation * @library /tools/lib * @modules jdk.compiler/com.sun.tools.javac.api * jdk.compiler/com.sun.tools.javac.main * jdk.compiler/com.sun.tools.sjavac ! * jdk.jdeps/com.sun.tools.javap ! * @build Wrapper toolbox.ToolBox * @run main Wrapper ClasspathDependencies */ - import static com.sun.tools.javac.util.Assert.check; import java.io.IOException; import java.nio.file.FileVisitResult; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import java.nio.file.attribute.FileTime; public class ClasspathDependencies extends SjavacBase { public static void main(String... args) throws Exception { Path root = Paths.get(ClasspathDependencies.class.getSimpleName() + "Test"); --- 27,52 ---- * @summary Make sure changes of public API on classpath triggers recompilation * @library /tools/lib * @modules jdk.compiler/com.sun.tools.javac.api * jdk.compiler/com.sun.tools.javac.main * jdk.compiler/com.sun.tools.sjavac ! * @build Wrapper toolbox.ToolBox toolbox.Assert * @run main Wrapper ClasspathDependencies */ import java.io.IOException; import java.nio.file.FileVisitResult; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import java.nio.file.attribute.FileTime; + import static toolbox.Assert.check; + public class ClasspathDependencies extends SjavacBase { public static void main(String... args) throws Exception { Path root = Paths.get(ClasspathDependencies.class.getSimpleName() + "Test");
*** 132,138 **** Files.delete(dir); return FileVisitResult.CONTINUE; } }); } - } --- 132,137 ----
< prev index next >