From 2d902b99bba7ae1ad77ebeb038a4ef63c3ed6399 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Tue, 24 Nov 2015 16:22:54 -0800 Subject: Change LoadNativeLibrary to use GetOrCreateAllocator Previously we used GetAllocatorForClassLoader. This did not handle the case where someone called LoadLibrary without having already loaded a class. Added regression test. Bug: 25866849 Change-Id: Id720505eaded3b0f9c2eab59a40611b328837c4a --- test/068-classloader/src/FancyLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/068-classloader/src/FancyLoader.java') diff --git a/test/068-classloader/src/FancyLoader.java b/test/068-classloader/src/FancyLoader.java index 6a153cc9e2..b8eac7b52f 100644 --- a/test/068-classloader/src/FancyLoader.java +++ b/test/068-classloader/src/FancyLoader.java @@ -38,7 +38,7 @@ public class FancyLoader extends ClassLoader { static final String CLASS_PATH = "classes-ex/"; /* this is the "alternate" DEX/Jar file */ - static final String DEX_FILE = System.getenv("DEX_LOCATION") + "/068-classloader-ex.jar"; + public static final String DEX_FILE = System.getenv("DEX_LOCATION") + "/068-classloader-ex.jar"; /* on Dalvik, this is a DexFile; otherwise, it's null */ private Class mDexClass; -- cgit v1.2.3-59-g8ed1b