Home
last modified time | relevance | path

Searched refs:exception_class (Results 1 – 11 of 11) sorted by relevance

/art/test/986-native-method-bind/
Dnative_bind.cc66 ScopedLocalRef<jclass> exception_class(env, env->FindClass("java/lang/Exception")); in doJvmtiMethodBind() local
67 env->ThrowNew(exception_class.get(), "dladdr failure!"); in doJvmtiMethodBind()
89 ScopedLocalRef<jclass> exception_class(env, env->FindClass("java/lang/Exception")); in doJvmtiMethodBind() local
90 env->ThrowNew(exception_class.get(), "dlsym failure!"); in doJvmtiMethodBind()
/art/runtime/
Djni_internal.h33 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause);
Djni_internal_test.cc62 void ExpectException(jclass exception_class) { in ExpectException() argument
65 << mirror::Class::PrettyDescriptor(soa.Decode<mirror::Class>(exception_class)); in ExpectException()
69 EXPECT_TRUE(env_->IsInstanceOf(exception, exception_class)); in ExpectException()
2214 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
2215 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
2216 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
2236 jclass exception_class = env_->FindClass("java/lang/RuntimeException"); in TEST_F() local
2237 ASSERT_TRUE(exception_class != nullptr); in TEST_F()
2241 EXPECT_EQ(JNI_OK, env_->ThrowNew(exception_class, "hello world")); in TEST_F()
2245 EXPECT_TRUE(env_->IsInstanceOf(thrown_exception, exception_class)); in TEST_F()
[all …]
Dreflection.cc678 jclass exception_class = soa.Env()->FindClass("java/lang/reflect/InvocationTargetException"); in InvokeMethod() local
679 if (exception_class == nullptr) { in InvokeMethod()
683 jmethodID mid = soa.Env()->GetMethodID(exception_class, "<init>", "(Ljava/lang/Throwable;)V"); in InvokeMethod()
685 jobject exception_instance = soa.Env()->NewObject(exception_class, mid, th.get()); in InvokeMethod()
Dthread.cc3005 Handle<mirror::Class> exception_class( in ThrowNewWrappedException() local
3007 if (UNLIKELY(exception_class == nullptr)) { in ThrowNewWrappedException()
3013 if (UNLIKELY(!runtime->GetClassLinker()->EnsureInitialized(soa.Self(), exception_class, true, in ThrowNewWrappedException()
3018 DCHECK(!runtime->IsStarted() || exception_class->IsThrowableClass()); in ThrowNewWrappedException()
3020 hs.NewHandle(ObjPtr<mirror::Throwable>::DownCast(exception_class->AllocObject(this)))); in ThrowNewWrappedException()
3052 exception_class->FindConstructor(signature, cl->GetImagePointerSize()); in ThrowNewWrappedException()
Djni_internal.cc366 int ThrowNewException(JNIEnv* env, jclass exception_class, const char* msg, jobject cause) in ThrowNewException() argument
390 jmethodID mid = env->GetMethodID(exception_class, "<init>", signature); in ThrowNewException()
394 << mirror::Class::PrettyClass(soa.Decode<mirror::Class>(exception_class)); in ThrowNewException()
399 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException()
593 ScopedLocalRef<jclass> exception_class(env, env->GetObjectClass(exception.get())); in ExceptionDescribe() local
594 jmethodID mid = env->GetMethodID(exception_class.get(), "printStackTrace", "()V"); in ExceptionDescribe()
Dclass_linker_test.cc67 mirror::Class* exception_class = in AssertNonExistentClass() local
69 EXPECT_TRUE(exception->InstanceOf(exception_class)); in AssertNonExistentClass()
Ddebugger.cc3066 Handle<mirror::Class> exception_class(hs.NewHandle(exception_->GetClass())); in VisitFrame() local
3068 found_dex_pc = method->FindCatchBlock(exception_class, dex_pc, &unused_clear_exception); in VisitFrame()
Dclass_linker.cc153 ObjPtr<mirror::Class> exception_class = class_linker->FindClass(self, descriptor, class_loader); in HasInitWithString() local
155 if (exception_class == nullptr) { in HasInitWithString()
162 ArtMethod* exception_init_method = exception_class->FindConstructor( in HasInitWithString()
/art/runtime/entrypoints/
Dentrypoint_utils.cc143 mirror::Class* exception_class = exception->GetClass(); in InvokeProxyInvocationHandler() local
146 declares_exception = declared_exception->IsAssignableFrom(exception_class); in InvokeProxyInvocationHandler()
/art/openjdkjvmti/
Devents.cc724 art::Handle<art::mirror::Class> exception_class, in FindCatchMethodsFromThrow() argument
730 exception_class_(exception_class), in FindCatchMethodsFromThrow()