summaryrefslogtreecommitdiff
path: root/java/testing.go
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2021-06-29 22:05:58 +0100
committerOrion Hodson <oth@google.com>2021-07-01 10:57:26 +0100
commit2d457e1cc8d0a364603b8e2f68334fc83bb00b15 (patch)
tree1dc405318975c2f45cd4411101d9fbd7cabbc605 /java/testing.go
parentfee8cf36e3f5c3280b470c8829c9f9a9d4594337 (diff)
"module_current" and "system_server_current" should contain ART's @SystemApi(MODULE_LIBRARIES)
Before this fix, compiling a java_library against sdk_version: "module_current" can't use the @SystemApi(MODULE_LIBRARIES) provided by the ART module because the system module "core-current-stubs-system-modules" contains only the public APIs. Use the new system module with module lib APIs. (cherry picked from commit b54f5aa3599196cfed8c32d3e52e1c35b51b8473) Bug: 183097033 Test: m droid Merged-In: I274e2710d1ff34e896aa620bfafb4481180c53b5 Change-Id: I374bc4899ef8f60344e37a94ad3cb8492f47fb4d
Diffstat (limited to 'java/testing.go')
-rw-r--r--java/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/testing.go b/java/testing.go
index 7b452f762..3ef51bd4d 100644
--- a/java/testing.go
+++ b/java/testing.go
@@ -312,6 +312,7 @@ func gatherRequiredDepsForTest() string {
systemModules := []string{
"core-current-stubs-system-modules",
+ "core-module-lib-stubs-system-modules",
"legacy-core-platform-api-stubs-system-modules",
"stable-core-platform-api-stubs-system-modules",
}