Skip to content

Commit

Permalink
class loader stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandolby committed Mar 5, 2015
1 parent 2266eb3 commit 1ea7746
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.ibm.wala.ipa.cha.ClassHierarchy;
import com.ibm.wala.ipa.cha.ClassHierarchyException;
import com.ibm.wala.util.io.FileProvider;
import com.ibm.wala.util.io.TemporaryFile;

public class DalvikAnnotationsTest extends AnnotationTest {

Expand All @@ -24,7 +25,9 @@ public static void main(String[] args) {

@BeforeClass
public static void before() throws IOException, ClassHierarchyException {
File F = (new FileProvider()).getFile("com.ibm.wala.core.testdata_1.0.0a.jar");
File F = File.createTempFile("walatest", ".jar");
F.deleteOnExit();
TemporaryFile.urlToFile(F, (new FileProvider()).getResource("com.ibm.wala.core.testdata_1.0.0a.jar"));
File androidDex = convertJarToDex(F.getAbsolutePath());
AnalysisScope dalvikScope = makeDalvikScope(true, androidDex.getAbsolutePath());
cha = ClassHierarchy.make(dalvikScope);
Expand Down

0 comments on commit 1ea7746

Please sign in to comment.