langtools/test/tools/javac/T8009640/CheckRejectProfileBCPOptionsIfUsedTogetherTest.java
changeset 26264 a09fedde76be
parent 26100 bb7dd001d190
child 30730 d3ce7619db2c
--- a/langtools/test/tools/javac/T8009640/CheckRejectProfileBCPOptionsIfUsedTogetherTest.java	Fri Aug 22 12:25:01 2014 +0200
+++ b/langtools/test/tools/javac/T8009640/CheckRejectProfileBCPOptionsIfUsedTogetherTest.java	Fri Aug 22 16:28:16 2014 -0700
@@ -44,12 +44,14 @@
 
     public static void main(String args[]) throws Exception {
         ToolBox tb = new ToolBox();
+        tb.writeFile("Test.java", TestSrc);
 
         ToolBox.Result result = tb.new JavacTask(ToolBox.Mode.CMDLINE)
                 .options("-profile", "compact1",
                         "-bootclasspath", Paths.get(ToolBox.testJDK, "jre/lib/rt.jar").toString())
-                .sources(TestSrc)
-                .run(ToolBox.Expect.FAIL);
+                .files("Test.java")
+                .run(ToolBox.Expect.FAIL)
+                .writeAll();
 
         String out = result.getOutput(ToolBox.OutputKind.DIRECT);
         Assert.check(out.startsWith(