Remove message ART creates for "throw null".
The new version of R8 transforms:
throw new NullPointerException()
Into:
throw null
ART used to create a message for the pattern "throw null", which is
something that now breaks ObjectsTest.requireNonNull.
Test: libcore.java.util.ObjectsTest#test_requireNonNull_T
Change-Id: I142ddc74a9c0cfc76d2479eb92078b7a7d077b27
diff --git a/runtime/common_throws.cc b/runtime/common_throws.cc
index a1168af..fdd4f36 100644
--- a/runtime/common_throws.cc
+++ b/runtime/common_throws.cc
@@ -728,6 +728,10 @@
ThrowException("Ljava/lang/NullPointerException;", nullptr, msg);
}
+void ThrowNullPointerException() {
+ ThrowException("Ljava/lang/NullPointerException;");
+}
+
// ReadOnlyBufferException
void ThrowReadOnlyBufferException() {