summaryrefslogtreecommitdiff
path: root/runtime/method_handles_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/method_handles_test.cc')
-rw-r--r--runtime/method_handles_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/method_handles_test.cc b/runtime/method_handles_test.cc
index fb2f7bd5c8..588f8612d0 100644
--- a/runtime/method_handles_test.cc
+++ b/runtime/method_handles_test.cc
@@ -347,7 +347,7 @@ TEST_F(MethodHandlesTest, UnsupportedNotBoxReferenceToPrimitiveConversion) {
value.SetL(cl->FindPrimitiveClass('V'));
ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value));
ASSERT_TRUE(soa.Self()->IsExceptionPending());
- ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException()));
+ ASSERT_TRUE(IsClassCastException(soa.Self()->GetException()));
soa.Self()->ClearException();
}