jdk/test/sun/reflect/CallerSensitive/CallerSensitiveFinder.java
changeset 20881 9e14db54cb2f
parent 17204 d0540971275f
child 26966 580934a3052b
equal deleted inserted replaced
20880:1b610151b316 20881:9e14db54cb2f
   126     public List<String> run(List<Path> classes) throws IOException, InterruptedException,
   126     public List<String> run(List<Path> classes) throws IOException, InterruptedException,
   127             ExecutionException, ConstantPoolException
   127             ExecutionException, ConstantPoolException
   128     {
   128     {
   129         ExecutorService pool = Executors.newFixedThreadPool(numThreads);
   129         ExecutorService pool = Executors.newFixedThreadPool(numThreads);
   130         for (Path path : classes) {
   130         for (Path path : classes) {
   131             ClassFileReader reader = ClassFileReader.newInstance(path.toFile());
   131             ClassFileReader reader = ClassFileReader.newInstance(path);
   132             for (ClassFile cf : reader.getClassFiles()) {
   132             for (ClassFile cf : reader.getClassFiles()) {
   133                 String classFileName = cf.getName();
   133                 String classFileName = cf.getName();
   134                 // for each ClassFile
   134                 // for each ClassFile
   135                 //    parse constant pool to find matching method refs
   135                 //    parse constant pool to find matching method refs
   136                 //      parse each method (caller)
   136                 //      parse each method (caller)