summaryrefslogtreecommitdiff
path: root/runtime/method_handles_test.cc
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2022-12-09 17:40:28 +0000
committer Orion Hodson <oth@google.com> 2022-12-12 13:33:39 +0000
commit5a454c6ed6bb692f5881a68ea9177d50e735b101 (patch)
treee1207f5eb3528e939c8e6580dd1524aa5bb93367 /runtime/method_handles_test.cc
parent5d3a23dd7d288b98a0713289072db785d01615c8 (diff)
Fix missing ClassCastException in VH unboxing conversion
Fix: 261589198 Test: art/test/run-test --host 712 Test: art/test/run-test --jvm 712 Test: art/test.py --host Test: art/tools/run-libcore-tests.sh --mode host libcore.java.lang.invoke Test: art/tools/run-libcore-tests.sh --mode host test.java.lang.invoke Change-Id: I1cb085e509cc83b89a6a8e101802a3ae8cc7e758
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();
}