diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2009-01-22 00:13:40 -0800 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-01-22 00:13:40 -0800 |
| commit | bcd637a94f10b49d18b87a74a015f9d3453ed77a (patch) | |
| tree | 743c4d6f56ea74d0a9f57585f5badb1031660adf /vm/analysis/CodeVerify.c | |
| parent | 4c1a2915e40eceeb68dbc323d28b8bf8763af83b (diff) | |
| download | android_dalvik-bcd637a94f10b49d18b87a74a015f9d3453ed77a.tar.gz android_dalvik-bcd637a94f10b49d18b87a74a015f9d3453ed77a.tar.bz2 android_dalvik-bcd637a94f10b49d18b87a74a015f9d3453ed77a.zip | |
auto import from //branches/cupcake/...@127436
Diffstat (limited to 'vm/analysis/CodeVerify.c')
| -rw-r--r-- | vm/analysis/CodeVerify.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vm/analysis/CodeVerify.c b/vm/analysis/CodeVerify.c index 2c5e74945..a57328745 100644 --- a/vm/analysis/CodeVerify.c +++ b/vm/analysis/CodeVerify.c @@ -2406,7 +2406,15 @@ static StaticField* getStaticField(const Method* meth, int fieldIdx, staticField = dvmOptResolveStaticField(meth->clazz, fieldIdx); if (staticField == NULL) { - LOG_VFY("VFY: unable to resolve static field %u\n", fieldIdx); + DexFile* pDexFile = meth->clazz->pDvmDex->pDexFile; + const DexFieldId* pFieldId; + + pFieldId = dexGetFieldId(pDexFile, fieldIdx); + + LOG_VFY("VFY: unable to resolve static field %u (%s) in %s\n", fieldIdx, + dexStringById(pDexFile, pFieldId->nameIdx), + dexStringByTypeIdx(pDexFile, pFieldId->classIdx)); + *pOkay = false; goto bail; } |
