make/tools/classanalyzer/src/com/sun/classanalyzer/AnnotationParser.java

Print this page

        

@@ -225,15 +225,14 @@
         // parse annotation and code attribute to find all references
         // to Class.forName etc
         CodeAttributeParser.setParseCodeAttribute(true);
         AnnotationParser.setParseAnnotation(true);
 
-        ClassPath.setJDKHome(jdkhome);
-        ClassPath.parseAllClassFiles();
+        ClassPaths cpaths = ClassPaths.newJDKClassPaths(jdkhome);
+        cpaths.parse();
 
         PrintWriter writer = new PrintWriter(new File(output, "jdk7.depconfig"));
-
         try {
             for (Klass k : Klass.getAllClasses()) {
                 for (AnnotatedDependency dep : k.getAnnotatedDeps()) {
                     if (dep.isEmpty()) {
                         continue;