Adds ThrowAbstractMethodError to common throws.
Change-Id: Ib9b6b634a934b075a168534e50b2160a4e4dbc65
diff --git a/src/common_throws.cc b/src/common_throws.cc
index 66e512e..0497901 100644
--- a/src/common_throws.cc
+++ b/src/common_throws.cc
@@ -66,6 +66,14 @@
}
}
+// AbstractMethodError
+
+void ThrowAbstractMethodError(const mirror::AbstractMethod* method) {
+ ThrowException(NULL, "Ljava/lang/AbstractMethodError;", NULL,
+ StringPrintf("abstract method \"%s\"",
+ PrettyMethod(method).c_str()).c_str());
+}
+
// ArithmeticException
void ThrowArithmeticExceptionDivideByZero() {