aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorPete Gillin <peteg@google.com>2019-06-20 17:00:30 +0100
committerPete Gillin <peteg@google.com>2019-06-21 17:40:49 +0100
commit390294ad2f39e632e981672726ad28f0ceafce1e (patch)
tree42694f48f58d0f577e8b315af8f0cefe088e5613 /Android.bp
parentf40caf79b7163ac7bfa12415fc28bacea61ad936 (diff)
downloadrobolectric-shadows-390294ad2f39e632e981672726ad28f0ceafce1e.tar.gz
Force robolectric to run tests using an OpenJDK 9 executable.
Prior to this CL, it would run tests using a later version if one is on the path. This fails because this robolectric version uses ASM 6.0 which doesn't support classfiles beyond v53 i.e. OpenJDK 9 (and robolectric doesn't work with ASM 7.0 until roblectric 4.0.x). Test: make RunCarSettingsLibRoboTests using an OpenJDK 11 toolchain via OVERRIDE_ANDROID_JAVA_HOME Bug: 135178974 Bug: 135459087 Change-Id: Ie67a01f1f8bcc618462473df9d11bd82c40fbeab
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 110ee85f8..089c23493 100644
--- a/Android.bp
+++ b/Android.bp
@@ -112,7 +112,7 @@ java_library_host {
"Robolectric_sandbox",
"Robolectric_junit",
"Robolectric_utils",
- "asm-6.0",
+ "asm-6.0", // if upgrading to ASM 7.0+, unset my_require_v53_or_lower_class_files in robotest-internal.mk (requires robolectric 4.0.x, see b/135459087)
"junit",
"asm-tree-6.0",
"asm-commons-6.0",