Add support for Value Format VALUE_TYPE in the encoded_array_item used for initial values of static field references from a class_def_item
Bug: 7356558
Change-Id: I2bef6de9b41605f17518bbcc72907bf5a92c6c26
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 0903781..007b8a6 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -2807,7 +2807,8 @@
const DexFile::ClassDef* dex_class_def = kh.GetClassDef();
CHECK(dex_class_def != NULL);
const DexFile& dex_file = kh.GetDexFile();
- EncodedStaticFieldValueIterator it(dex_file, dex_cache, this, *dex_class_def);
+ EncodedStaticFieldValueIterator it(dex_file, dex_cache, klass->GetClassLoader(),
+ this, *dex_class_def);
if (it.HasNext()) {
// We reordered the fields, so we need to be able to map the field indexes to the right fields.