OSDN Git Service

am 84cdf110: Merge "Avoid method overriding if its super method is inaccessible."
authorElliott Hughes <enh@google.com>
Wed, 11 Jul 2012 17:57:36 +0000 (10:57 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Wed, 11 Jul 2012 17:57:36 +0000 (10:57 -0700)
* commit '84cdf1103122aaef5d3969a7b02f3d1965a894c6':
  Avoid method overriding if its super method is inaccessible.

vm/reflect/Annotation.cpp

index 233db08..bd18a80 100644 (file)
@@ -679,7 +679,7 @@ static Object* createAnnotationMember(const ClassObject* clazz,
             ALOGW("WARNING: could not find annotation member %s in %s",
                 name, annoClass->descriptor);
         } else {
-            methodObj = dvmCreateReflectMethodObject(annoMeth);
+            methodObj = dvmCreateReflectObjForMethod(annoClass, annoMeth);
             methodReturn = dvmGetBoxedReturnType(annoMeth);
         }
     }