From 5d27fafdf03f259e92eaee9f6319b9349cc8d62e Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Fri, 2 May 2014 17:17:18 -0700 Subject: Allow ArtMethod::Invoke in unstarted runtimes. Change-Id: I0141f4daef4751589d03d27484eb65c811b14f27 --- runtime/jni_internal_test.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'runtime/jni_internal_test.cc') diff --git a/runtime/jni_internal_test.cc b/runtime/jni_internal_test.cc index 071b658fb9..14fc25c302 100644 --- a/runtime/jni_internal_test.cc +++ b/runtime/jni_internal_test.cc @@ -322,11 +322,7 @@ TEST_F(JniInternalTest, FromReflectedMethod_ToReflectedMethod) { ASSERT_TRUE(mid2 != NULL); // Make sure we can actually use it. jstring s = env_->NewStringUTF("poop"); - // TODO: this should return 4, but the runtime skips the method - // invoke because the runtime isn't started. In the future it would - // be nice to use interpretter for things like this. This still does - // validate that we have a sane jmethodID value. - ASSERT_EQ(0, env_->CallIntMethod(s, mid2)); + ASSERT_EQ(4, env_->CallIntMethod(s, mid2)); } void BogusMethod() { -- cgit v1.2.3