summaryrefslogtreecommitdiffstats
path: root/test/Android.bp
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2017-04-03 15:39:55 -0700
committerAlex Light <allight@google.com>2017-04-04 11:44:35 -0700
commitdb01a091aefbd78b56777f4c2e8c5e3f2d8c2712 (patch)
tree62dbbd082c5a4cfc122830a4df0a2ced219d8d6d /test/Android.bp
parent432fccc4c001fcd822f401aea1a4214b713bd896 (diff)
downloadandroid_art-db01a091aefbd78b56777f4c2e8c5e3f2d8c2712.tar.gz
android_art-db01a091aefbd78b56777f4c2e8c5e3f2d8c2712.tar.bz2
android_art-db01a091aefbd78b56777f4c2e8c5e3f2d8c2712.zip
Ensure invoking obsolete methods throws errors.
This sets the entrypoint for obsolete methods to a special stub that will ensure that calling them results in an Error being thrown. Previously we were allowing obsolete methods to be run if they could reach the appropriate places in the runtime. Getting into the state where this is possible is extremely difficult since one can only get an jmethodID to an obsolete method by snatching it off the stack (or by inspecting internal runtime data). From there normally invoking it will do lookup on the receiver which will get you the original version. Bug: 36867251 Bug: 31455788 Test: ./test.py --host -j40 Test: (with aosp_marlin-userdebug device) ./test.py --target -j4 Change-Id: I2ca0503966a4e3de18dd89cb7ff224eba1459b49
Diffstat (limited to 'test/Android.bp')
-rw-r--r--test/Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Android.bp b/test/Android.bp
index 40f7edd1d2..b79006fcea 100644
--- a/test/Android.bp
+++ b/test/Android.bp
@@ -298,6 +298,7 @@ art_cc_defaults {
"945-obsolete-native/obsolete_native.cc",
"980-redefine-object/redefine_object.cc",
"983-source-transform-verify/source_transform.cc",
+ "984-obsolete-invoke/obsolete_invoke.cc",
],
}