Skip to content

Commit 3f744e5

Browse files
committed
Fix loading classes
1 parent 1b4cd59 commit 3f744e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

soot-infoflow/src/soot/jimple/infoflow/entryPointCreators/BaseEntryPointCreator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,10 @@ protected boolean acceptClass(SootClass clazz) {
540540
// We cannot create instances of phantom classes as we do not have any
541541
// constructor information for them
542542
if (!clazz.getName().equals("android.view.View")) {
543+
if (clazz.isPhantom() || clazz.isPhantomClass()) {
544+
clazz.setLibraryClass();
545+
}
546+
Scene.v().forceResolve(clazz.getName(), SootClass.SIGNATURES);
543547
if (clazz.isPhantom() || clazz.isPhantomClass()) {
544548
logger.warn("Cannot generate constructor for phantom class {}", clazz.getName());
545549
return false;

0 commit comments

Comments
 (0)