summaryrefslogtreecommitdiff
path: root/java/hiddenapi_modular.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2023-04-24 18:06:44 +0000
committer Jihoon Kang <jihoonkang@google.com> 2023-05-22 07:13:25 +0000
commit7e9e20e389d065e73c26f4b2dc54333292bc931c (patch)
tree44ddefc062bb4308e35fb1a317f1ea95059ed673 /java/hiddenapi_modular.go
parentd0f9520414c41f3c78a0147c1b56b86672151686 (diff)
Fix bootclasspath_fragment build failure during from-text stub build
This change enables bootclasspath_fragment module to be correctly built during from-text stub build by android-non-updatable module to be interpreted as its java_api_library equivalent. Test: go test ./java Bug: 279460171 Change-Id: Ia6b60edcb60782977cc59855f1cf5d3a46e9f682
Diffstat (limited to 'java/hiddenapi_modular.go')
-rw-r--r--java/hiddenapi_modular.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/hiddenapi_modular.go b/java/hiddenapi_modular.go
index 96e084a20..e54275b88 100644
--- a/java/hiddenapi_modular.go
+++ b/java/hiddenapi_modular.go
@@ -647,7 +647,7 @@ func (s StubDexJarsByModule) addStubDexJar(ctx android.ModuleContext, module and
// public version is provided by the art.module.public.api module. In those cases it is necessary
// to treat all those modules as they were the same name, otherwise it will result in multiple
// definitions of a single class being passed to hidden API processing which will cause an error.
- if name == scope.nonUpdatablePrebuiltModule || name == scope.nonUpdatableSourceModule {
+ if name == scope.nonUpdatablePrebuiltModule || name == android.JavaApiLibraryName(ctx.Config(), scope.nonUpdatableSourceModule) {
// Treat all *android-non-updatable* modules as if they were part of an android-non-updatable
// java_sdk_library.
// TODO(b/192067200): Remove once android-non-updatable is a java_sdk_library or equivalent.