summaryrefslogtreecommitdiff
path: root/runtime/native/java_lang_Class.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-12-21 09:58:16 -0800
committer Mathieu Chartier <mathieuc@google.com> 2015-12-21 09:58:16 -0800
commit9865bde5d822f56c4732214c2005dfcaa41f94cf (patch)
treecd2eae058f4f4f13b5a82ff557b7eaaf13a1ecfb /runtime/native/java_lang_Class.cc
parent115a02b737dd5f4d485b2f6c359e02988df66b83 (diff)
Rename NullHandle to ScopedNullHandle
This makes it clearer that is invalid to do things like: Handle<T> h = ScopedNullHandle<T>(); Bug: 26233305 Change-Id: I6d8f54eae01ec2e901cb7043afa853ea77db79fe
Diffstat (limited to 'runtime/native/java_lang_Class.cc')
-rw-r--r--runtime/native/java_lang_Class.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/native/java_lang_Class.cc b/runtime/native/java_lang_Class.cc
index 14d284e003..19774811bc 100644
--- a/runtime/native/java_lang_Class.cc
+++ b/runtime/native/java_lang_Class.cc
@@ -653,7 +653,8 @@ static jobject Class_newInstance(JNIEnv* env, jobject javaThis) {
}
}
auto* constructor = klass->GetDeclaredConstructor(
- soa.Self(), NullHandle<mirror::ObjectArray<mirror::Class>>());
+ soa.Self(),
+ ScopedNullHandle<mirror::ObjectArray<mirror::Class>>());
if (UNLIKELY(constructor == nullptr)) {
soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;",
"%s has no zero argument constructor",