diff options
| author | 2020-07-30 14:23:00 +0100 | |
|---|---|---|
| committer | 2020-08-03 14:10:52 +0000 | |
| commit | 7992467de2dd3ea6eec1cd5cf8825d025fecd247 (patch) | |
| tree | 5205f878a120e1f8233f5d88f0a93e328f67c96e /runtime/native/java_lang_Class.cc | |
| parent | e3e187f29fa4025e30c5a43decb2b6f6c584d59c (diff) | |
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
Diffstat (limited to 'runtime/native/java_lang_Class.cc')
| -rw-r--r-- | runtime/native/java_lang_Class.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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<mirror::Class> proxy_class = GetClassRoot<mirror::Proxy>(); if (declaring_class->IsInSamePackage(proxy_class) && declaring_class != proxy_class) { - if (Runtime::Current()->isChangeEnabled(kPreventMetaReflectionBlacklistAccess)) { + if (Runtime::Current()->isChangeEnabled(kPreventMetaReflectionBlocklistAccess)) { return true; } } |