Adds ThrowAbstractMethodError to common throws.
Change-Id: Ib9b6b634a934b075a168534e50b2160a4e4dbc65
diff --git a/src/oat/runtime/support_stubs.cc b/src/oat/runtime/support_stubs.cc
index 71b67d0..096cb9c 100644
--- a/src/oat/runtime/support_stubs.cc
+++ b/src/oat/runtime/support_stubs.cc
@@ -409,9 +409,7 @@
#else
UNUSED(sp);
#endif
- ThrowLocation throw_location = self->GetCurrentLocationForThrow();
- self->ThrowNewExceptionF(throw_location, "Ljava/lang/AbstractMethodError;",
- "abstract method \"%s\"", PrettyMethod(method).c_str());
+ ThrowAbstractMethodError(method);
self->QuickDeliverException();
}