8176900: TreePosTest should disable annotation processing
authorjjg
Thu, 16 Mar 2017 14:40:39 -0700
changeset 44299 f7ba265fafc7
parent 44298 91f4062cbbc2
child 44300 4bd6416db3de
8176900: TreePosTest should disable annotation processing Reviewed-by: vromero
langtools/test/tools/javac/tree/TreePosTest.java
--- a/langtools/test/tools/javac/tree/TreePosTest.java	Thu Mar 16 17:56:00 2017 +0000
+++ b/langtools/test/tools/javac/tree/TreePosTest.java	Thu Mar 16 14:40:39 2017 -0700
@@ -281,7 +281,8 @@
         JavacTool tool = JavacTool.create();
         r.errors = 0;
         Iterable<? extends JavaFileObject> files = fm.getJavaFileObjects(file);
-        JavacTask task = tool.getTask(pw, fm, r, Collections.<String>emptyList(), null, files);
+        JavacTask task = tool.getTask(pw, fm, r, Collections.<String>emptyList(),
+                List.of("-proc:none"), files);
         Iterable<? extends CompilationUnitTree> trees = task.parse();
         pw.flush();
         if (r.errors > 0)