pascal-lab/Tai-e

Phantom class creation

michaelphop opened this issue · 1 comments

In the following code:

SootClass sootClass = scene.getSootClassUnsafe(name, false);

Why do we pass false to getSootClassUnsafe?
Doesn't it make more sense to pass true? (That if jclass is null, let's create a new fake sootClass and mark it as phantom)

We would like to make this API (JClassLoader.loadClass(String)) safer. If it passes true, then it may also create a phantom class even if it receives an arbitrary string.