diff -r 5ce1fe94b270 -r a09fedde76be langtools/test/tools/javac/T8009640/CheckRejectProfileBCPOptionsIfUsedTogetherTest.java --- 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(