test/tools/javac/processing/6414633/T6414633.java

changeset 308
03944ee4fac4
parent 1
9a66ca7c79fa
child 554
9d9f26857129
equal deleted inserted replaced
307:ca063536e4a6 308:03944ee4fac4
53 } 53 }
54 Iterable<? extends JavaFileObject> files = 54 Iterable<? extends JavaFileObject> files =
55 fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(testSrc, A.class.getName()+".java"))); 55 fm.getJavaFileObjectsFromFiles(Arrays.asList(new File(testSrc, A.class.getName()+".java")));
56 String[] opts = { "-proc:only", 56 String[] opts = { "-proc:only",
57 "-processor", A.class.getName(), 57 "-processor", A.class.getName(),
58 "-source", "1.6",
58 "-classpath", testClasses }; 59 "-classpath", testClasses };
59 JavacTask task = tool.getTask(null, fm, dl, Arrays.asList(opts), null, files); 60 JavacTask task = tool.getTask(null, fm, dl, Arrays.asList(opts), null, files);
60 task.call(); 61 task.call();
61 62
62 // two annotations on the same element -- expect 2 diags from the processor 63 // two annotations on the same element -- expect 2 diags from the processor

mercurial