diff options
author | 2018-05-23 16:06:04 +0000 | |
---|---|---|
committer | 2018-05-23 16:06:04 +0000 | |
commit | ff7ff426e136aa8fd6e33d873f6259311982f6bb (patch) | |
tree | ca937096fce3dcabf8890d80616ab5021d0b22b9 /compiler/jni/jni_compiler_test.cc | |
parent | aaebb1468cc95838aa58ed537d03de000c9cfe28 (diff) | |
parent | e9987b0831403858d95bdd7a5ef9e56665a9702d (diff) |
Merge "ObjPtr<>-ify tests using ClassLinker::FindClass()."
Diffstat (limited to 'compiler/jni/jni_compiler_test.cc')
-rw-r--r-- | compiler/jni/jni_compiler_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jni/jni_compiler_test.cc b/compiler/jni/jni_compiler_test.cc index c643af787d..3cb4a652ad 100644 --- a/compiler/jni/jni_compiler_test.cc +++ b/compiler/jni/jni_compiler_test.cc @@ -245,7 +245,7 @@ class JniCompilerTest : public CommonCompilerTest { Handle<mirror::ClassLoader> loader( hs.NewHandle(soa.Decode<mirror::ClassLoader>(class_loader))); // Compile the native method before starting the runtime - mirror::Class* c = class_linker_->FindClass(soa.Self(), "LMyClassNatives;", loader); + ObjPtr<mirror::Class> c = class_linker_->FindClass(soa.Self(), "LMyClassNatives;", loader); const auto pointer_size = class_linker_->GetImagePointerSize(); ArtMethod* method = c->FindClassMethod(method_name, method_sig, pointer_size); ASSERT_TRUE(method != nullptr) << method_name << " " << method_sig; |