summaryrefslogtreecommitdiff
path: root/java/platform_bootclasspath.go
diff options
context:
space:
mode:
author Jihoon Kang <jihoonkang@google.com> 2025-01-09 07:54:41 +0000
committer Jihoon Kang <jihoonkang@google.com> 2025-01-09 07:58:04 +0000
commit2b13370ee83b13998f14b7e862c6c547a13dfdc4 (patch)
tree095f97e82b8106b1e2c122d20bc7a6c4db398c1c /java/platform_bootclasspath.go
parent44670268657b495ea803001cb22b1abd70297a6a (diff)
Fix sdk lib impl lib collection in platform_bootclasspath
https://r.android.com/2757569 accidentally led to visiting the sdk library impl lib direct deps with the wrong dependency tag, leading to the transitive source files not being properly collected in the generated srcjar file in platform bootclasspath. This change fixes the issue by collecting the dependency using the correct tag. Test: go test ./java Change-Id: I1be37be1af7b13860d5c0ec99c3567100e5158bd
Diffstat (limited to 'java/platform_bootclasspath.go')
-rw-r--r--java/platform_bootclasspath.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/platform_bootclasspath.go b/java/platform_bootclasspath.go
index d09a02e50..152eb1eeb 100644
--- a/java/platform_bootclasspath.go
+++ b/java/platform_bootclasspath.go
@@ -172,7 +172,7 @@ func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.Mo
// Do not add implLibModule to allModules as the impl lib is only used to collect the
// transitive source files
var implLibModule []android.Module
- ctx.VisitDirectDepsWithTag(implLibraryTag, func(m android.Module) {
+ ctx.VisitDirectDepsWithTag(platformBootclasspathImplLibDepTag, func(m android.Module) {
implLibModule = append(implLibModule, m)
})