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 |