8177014: tools/javac/tree/TreePosTest.java test fails with IllegalArgumentException

Reviewed-by: redestad
This commit is contained in:
Jonathan Gibbons 2017-03-16 17:13:10 -07:00
parent 80330fc21e
commit 833ecc754c

View File

@ -281,8 +281,7 @@ public class TreePosTest {
JavacTool tool = JavacTool.create();
r.errors = 0;
Iterable<? extends JavaFileObject> files = fm.getJavaFileObjects(file);
JavacTask task = tool.getTask(pw, fm, r, Collections.<String>emptyList(),
List.of("-proc:none"), files);
JavacTask task = tool.getTask(pw, fm, r, List.of("-proc:none"), null, files);
Iterable<? extends CompilationUnitTree> trees = task.parse();
pw.flush();
if (r.errors > 0)