From 2b13370ee83b13998f14b7e862c6c547a13dfdc4 Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Thu, 9 Jan 2025 07:54:41 +0000 Subject: 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 --- java/platform_bootclasspath.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/platform_bootclasspath.go') 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) }) -- cgit v1.2.3-59-g8ed1b