changeset 44300:4bd6416db3de

8177014: tools/javac/tree/TreePosTest.java test fails with IllegalArgumentException Reviewed-by: redestad
author jjg
date Thu, 16 Mar 2017 17:13:10 -0700
parents f7ba265fafc7
children 2f97c71f06f4
files langtools/test/tools/javac/tree/TreePosTest.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/langtools/test/tools/javac/tree/TreePosTest.java	Thu Mar 16 14:40:39 2017 -0700
+++ b/langtools/test/tools/javac/tree/TreePosTest.java	Thu Mar 16 17:13:10 2017 -0700
@@ -281,8 +281,7 @@
         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)