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/entrypoints/quick/quick_throw_entrypoints.cc b/runtime/entrypoints/quick/quick_throw_entrypoints.cc
index 2e447ec..202b031 100644
--- a/runtime/entrypoints/quick/quick_throw_entrypoints.cc
+++ b/runtime/entrypoints/quick/quick_throw_entrypoints.cc
@@ -54,7 +54,7 @@
*/
ScopedQuickEntrypointChecks sqec(self);
if (exception == nullptr) {
- self->ThrowNewException("Ljava/lang/NullPointerException;", "throw with null exception");
+ self->ThrowNewException("Ljava/lang/NullPointerException;", nullptr);
} else {
self->SetException(exception);
}