summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Yu Liu <yudiliu@google.com> 2025-03-14 16:26:48 -0700
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2025-03-14 16:26:48 -0700
commit7909c860f9d79586d4e731b6162bf115ae10c778 (patch)
treeda660a6da02da57b771ebc1f7ea1bf3189a90c47 /java/java.go
parent52b238b5e68a9f7f06a0e776fdf57161bf2b0305 (diff)
parentf2aacebb28cf16f9c3fa4c59a9a9a931ab6b0846 (diff)
Merge "Change CommonModuleInfoProvider to a pointer." into main am: f2aacebb28
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3542441 Change-Id: Id39d70ecd80252cdb1aacaead65c5fe9a143dec4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index 7f897a04f..dd9f852f0 100644
--- a/java/java.go
+++ b/java/java.go
@@ -2235,7 +2235,7 @@ func (j *Binary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
// install these alongside the java binary.
ctx.VisitDirectDepsProxyWithTag(jniInstallTag, func(jni android.ModuleProxy) {
// Use the BaseModuleName of the dependency (without any prebuilt_ prefix)
- commonInfo, _ := android.OtherModuleProvider(ctx, jni, android.CommonModuleInfoProvider)
+ commonInfo := android.OtherModulePointerProviderOrDefault(ctx, jni, android.CommonModuleInfoProvider)
j.androidMkNamesOfJniLibs = append(j.androidMkNamesOfJniLibs, commonInfo.BaseModuleName+":"+commonInfo.Target.Arch.ArchType.Bitness())
})
// Check that native libraries are not listed in `required`. Prompt users to use `jni_libs` instead.