diff options
author | Ian Rogers <irogers@google.com> | 2014-05-02 17:17:18 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-05-02 23:30:03 -0700 |
commit | 5d27fafdf03f259e92eaee9f6319b9349cc8d62e (patch) | |
tree | 53afb1174be2ae235e41c5ac9eeb1e8d67e3c4e1 /runtime/jni_internal_test.cc | |
parent | a54c22c0041306f6881694f4c305e655b10e37be (diff) | |
download | android_art-5d27fafdf03f259e92eaee9f6319b9349cc8d62e.tar.gz android_art-5d27fafdf03f259e92eaee9f6319b9349cc8d62e.tar.bz2 android_art-5d27fafdf03f259e92eaee9f6319b9349cc8d62e.zip |
Allow ArtMethod::Invoke in unstarted runtimes.
Change-Id: I0141f4daef4751589d03d27484eb65c811b14f27
Diffstat (limited to 'runtime/jni_internal_test.cc')
-rw-r--r-- | runtime/jni_internal_test.cc | 6 |
1 files changed, 1 insertions, 5 deletions
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() { |