am f35c305f
: am 6a3faf5a
: Merge "Fix test framework to allow Mockito tests to run successfully on ART." into lmp-dev
* commit 'f35c305f45db60394c3c7fec2e41b38963da70ca': Fix test framework to allow Mockito tests to run successfully on ART.
This commit is contained in:
@ -87,7 +87,7 @@ public class ClassPathPackageInfoSource {
|
|||||||
// We get errors in the emulator if we don't use the caller's class loader.
|
// We get errors in the emulator if we don't use the caller's class loader.
|
||||||
topLevelClasses.add(Class.forName(className, false,
|
topLevelClasses.add(Class.forName(className, false,
|
||||||
(classLoader != null) ? classLoader : CLASS_LOADER));
|
(classLoader != null) ? classLoader : CLASS_LOADER));
|
||||||
} catch (ClassNotFoundException e) {
|
} catch (ClassNotFoundException | NoClassDefFoundError e) {
|
||||||
// Should not happen unless there is a generated class that is not included in
|
// Should not happen unless there is a generated class that is not included in
|
||||||
// the .apk.
|
// the .apk.
|
||||||
Log.w("ClassPathPackageInfoSource", "Cannot load class. "
|
Log.w("ClassPathPackageInfoSource", "Cannot load class. "
|
||||||
|
Reference in New Issue
Block a user