Extra tests (and a bug fix).
I've also added a trailing " " to the CHECK/UNIMPLEMENTED macros'
output, to make it more natural for callers to add their own detail.
Change-Id: I59bc51ac54aaff93f37a6b35082301e19db91304
diff --git a/src/thread.cc b/src/thread.cc
index 51b72ce..609ae41 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -147,11 +147,11 @@
// TODO: what if there's already a pending exception?
// TODO: support the other constructors.
Method* ctor = exception_class->FindDirectMethod("<init>", "(Ljava/lang/String;)V");
+ CHECK(ctor != NULL);
// TODO: need to *call* the constructor!
UNIMPLEMENTED(WARNING) << "can't call "
- << exception_class->GetDescriptor() << "."
- << ctor->GetDescriptor() << " "
+ << exception_class->GetDescriptor() << ".<init> "
<< "\"" << msg << "\"";
thread->SetException(exception);