changeset 4055:de37b2959c68

8176900: TreePosTest should disable annotation processing Reviewed-by: vromero
author jjg
date Thu, 16 Mar 2017 14:40:39 -0700
parents 7a7efd549ab6
children 7b92442057a8
files test/tools/javac/tree/TreePosTest.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/tree/TreePosTest.java	Thu Mar 16 17:56:00 2017 +0000
+++ b/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)