void run() throws Exception {
Context c = new Context();
DiagnosticCollector<JavaFileObject> dc =
new DiagnosticCollector<JavaFileObject>();
c.put(DiagnosticListener.class, dc);
StandardJavaFileManager fm = new JavacFileManager(c, false, null);
fm.setLocation(StandardLocation.CLASS_PATH,
Arrays.asList(new File("DOES_NOT_EXIST.jar")));
FileObject fo = fm.getFileForInput(StandardLocation.CLASS_PATH,
"p", "C.java");
System.err.println(fo + "\n" + dc.getDiagnostics());
if (dc.getDiagnostics().size() > 0)
throw new Exception("unexpected diagnostics found");
}