22
33import java .util .Collection ;
44import java .util .Set ;
5+
6+ import org .apache .logging .log4j .LogManager ;
7+ import org .apache .logging .log4j .Logger ;
58import org .clyze .doop .common .ArtifactScanner ;
69import org .clyze .doop .common .BasicJavaSupport ;
710import soot .Scene ;
811import soot .SootClass ;
912import soot .SourceLocator ;
1013
1114public class BasicJavaSupport_Soot extends BasicJavaSupport implements ClassAdder {
15+ Logger logger = LogManager .getLogger (BasicJavaSupport_Soot .class );
1216
1317 public BasicJavaSupport_Soot (SootParameters parameters , ArtifactScanner artScanner ) {
1418 super (parameters , artScanner );
1519 }
1620
1721 public void addSootClasses (Iterable <String > classesToLoad , Collection <SootClass > loadedClasses , Scene scene ) {
22+ logger .info ("start addSootClasses" );
23+ if (classesToLoad instanceof Set ){
24+ logger .info ("addSootClasses size " + ((Set <String >) classesToLoad ).size ());
25+ }
1826 for (String className : classesToLoad ) {
1927 if (className .contains ("]" ) || className .contains ("[" ) || className .contains (";" )) {
2028 System .err .println ("WARNING: class name '" + className + "' is not supported, class will not be loaded." );
@@ -28,6 +36,7 @@ public void addSootClasses(Iterable<String> classesToLoad, Collection<SootClass>
2836 throw ex ;
2937 }
3038 }
39+ logger .info ("end addSootClasses loadedClasses" + loadedClasses .size ());
3140 }
3241
3342 @ Override
@@ -49,7 +58,7 @@ public boolean isAppOrDepClass(String t) {
4958 public void addAppClasses (Set <SootClass > classes , Scene scene ) {
5059 addSootClasses (classesInApplicationJars , classes , scene );
5160 addBasicClasses (scene );
52- System . out . println ("Classes in input (application) jar(s): " + classesInApplicationJars .size ());
61+ logger . info ("Classes in input (application) jar(s): " + classesInApplicationJars .size ());
5362 }
5463
5564 @ Override
0 commit comments