From 7992467de2dd3ea6eec1cd5cf8825d025fecd247 Mon Sep 17 00:00:00 2001 From: Andrei Onea Date: Thu, 30 Jul 2020 14:23:00 +0100 Subject: Rename meta-reflection changeid Use a more inclusive terminology to describe the meta-reflection preventing changeid. Test: art/test/testrunner/testrunner.py --target -t674-hiddenapi Bug: 162318095 Change-Id: I4fde31aa41a9cf506c509b223b9f28d9da11cf8a --- runtime/native/java_lang_Class.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/native/java_lang_Class.cc') diff --git a/runtime/native/java_lang_Class.cc b/runtime/native/java_lang_Class.cc index 7ea07464db..4443045319 100644 --- a/runtime/native/java_lang_Class.cc +++ b/runtime/native/java_lang_Class.cc @@ -56,9 +56,9 @@ namespace art { -// Should be the same as dalvik.system.VMRuntime.PREVENT_META_REFLECTION_BLACKLIST_ACCESS. +// Should be the same as dalvik.system.VMRuntime.PREVENT_META_REFLECTION_BLOCKLIST_ACCESS. // Corresponds to a bug id. -static constexpr uint64_t kPreventMetaReflectionBlacklistAccess = 142365358; +static constexpr uint64_t kPreventMetaReflectionBlocklistAccess = 142365358; // Walks the stack, finds the caller of this reflective call and returns // a hiddenapi AccessContext formed from its declaring class. @@ -105,7 +105,7 @@ static hiddenapi::AccessContext GetReflectionCaller(Thread* self) // (e.g. in 691-hiddenapi-proxy). ObjPtr proxy_class = GetClassRoot(); if (declaring_class->IsInSamePackage(proxy_class) && declaring_class != proxy_class) { - if (Runtime::Current()->isChangeEnabled(kPreventMetaReflectionBlacklistAccess)) { + if (Runtime::Current()->isChangeEnabled(kPreventMetaReflectionBlocklistAccess)) { return true; } } -- cgit v1.2.3-59-g8ed1b