langtools/test/tools/javac/diags/ArgTypeCompilerFactory.java
changeset 11053 48713f779b1d
parent 10817 d91978895fac
child 23810 b92eb80925f0
equal deleted inserted replaced
11052:65b9fa7eaf55 11053:48713f779b1d
   103             if (fmOpts != null)
   103             if (fmOpts != null)
   104                 fm = new FileManager(fm, fmOpts);
   104                 fm = new FileManager(fm, fmOpts);
   105 
   105 
   106             Iterable<? extends JavaFileObject> fos = fm.getJavaFileObjectsFromFiles(files);
   106             Iterable<? extends JavaFileObject> fos = fm.getJavaFileObjectsFromFiles(files);
   107 
   107 
   108             JavacTaskImpl t = (JavacTaskImpl) tool.getTask(out, fm, null, opts, null, fos);
   108             Context c = new Context();
   109             Context c = t.getContext();
       
   110             ArgTypeMessages.preRegister(c);
   109             ArgTypeMessages.preRegister(c);
   111             ArgTypeJavaCompiler.preRegister(c);
   110             ArgTypeJavaCompiler.preRegister(c);
   112             Boolean ok = t.call();
   111             JavacTaskImpl t = (JavacTaskImpl) tool.getTask(out, fm, null, opts, null, fos, c);
   113 
   112             return t.call();
   114             return ok;
       
   115         }
   113         }
   116     }
   114     }
   117 
   115 
   118     /**
   116     /**
   119      * Run the test using the standard simple entry point.
   117      * Run the test using the standard simple entry point.