checkPackagePrivateAccess only for API 17(4.2)

Google revert this for compatibility.
see 7284c78e14 for details.

BTW, it seems that is also disabled for late 4.2
This commit is contained in:
yyjdelete 2014-11-14 20:50:13 +08:00
parent 686cf35c8e
commit 62c103d92a

View File

@ -628,7 +628,7 @@ public class ClassProto implements TypeProto {
for (int i=0; i<vtable.size(); i++) {
Method superMethod = vtable.get(i);
if (methodSignaturesMatch(superMethod, virtualMethod)) {
if (classPath.getApi() < 17 || canAccess(superMethod)) {
if (classPath.getApi() != 17 || canAccess(superMethod)) {
if (replaceExisting) {
vtable.set(i, virtualMethod);
}